Los Santos 2014
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Los Santos 2014

This is the official forum for the Los Santos 2014 SA-MP server.
 
HomeGalleryLatest imagesSearchRegisterLog in

 

 How to lock skins.

Go down 
4 posters
AuthorMessage
[LSG]Kikki
Hitman
Hitman



Number of posts : 143
Registration date : 2009-02-13
Points : -12

How to lock skins. Empty
PostSubject: How to lock skins.   How to lock skins. I_icon_minitimeSat Feb 14, 2009 8:10 am

public OnPlayerRequestClass(playerid,classid)
{
if(classid == 21 && !strcmp(name, "[IB]Kikki", true) == 1))
{
SendClientMessage(playerid,Brown,"You are not [IB]Kikki! Choose another skin!");
return 0;
}
else
{
return 1;
}
return 1;
}
Back to top Go down
[LSG]Valdez[NTB]
NTB Leader
NTB Leader
[LSG]Valdez[NTB]


Number of posts : 204
Age : 31
Location : Ocean Docks, Willowfield, Drinking a Beer
Registration date : 2009-02-13
Points : 23

How to lock skins. Empty
PostSubject: Re: How to lock skins.   How to lock skins. I_icon_minitimeSat Feb 14, 2009 8:22 am

Command to lock skin is koo I want this command.
Back to top Go down
[TDB]Burnz
TDB Co-Leader/Server Admin
TDB Co-Leader/Server Admin
[TDB]Burnz


Number of posts : 336
Age : 27
Location : Smokin' weed sumwhere
Registration date : 2009-02-17
Points : -9

How to lock skins. Empty
PostSubject: Re: How to lock skins.   How to lock skins. I_icon_minitimeWed Feb 18, 2009 5:00 am

That's koo, I might get a own skin if I ask rab to give me one.
Back to top Go down
[LSB]Clinz
Lead admin / Scripter
Lead admin / Scripter



Number of posts : 16
Registration date : 2009-02-12
Points : 12

How to lock skins. Empty
PostSubject: Re: How to lock skins.   How to lock skins. I_icon_minitimeSun Feb 22, 2009 11:17 am

*Wrong*

Bad indentation.
_________________________________

Correct code:

Add this to the top,

Code:
new gPlayerClass[MAX_PLAYERS];

Code:
public OnPlayerRequestClass(playerid,classid)
{
if (gPlayerClass[playerid] == CLASS_ID_HERE && !strcmp(name, "[IB]Kikki", false) == 1))
{
SendClientMessage(playerid,0xFFFFFFAA,"You are not [IB]Kikki! Choose another skin!");
SetPlayerHealth(playerid,0.0);

return 1;
}
return 1;
}
Back to top Go down
Sponsored content





How to lock skins. Empty
PostSubject: Re: How to lock skins.   How to lock skins. I_icon_minitime

Back to top Go down
 
How to lock skins.
Back to top 
Page 1 of 1
 Similar topics
-
» CIA SKINS ( TOP SEcRET SKIN)

Permissions in this forum:You cannot reply to topics in this forum
Los Santos 2014 :: SA-MP Related :: Scripting.-
Jump to: