[LSG]Kikki Hitman
Number of posts : 143 Registration date : 2009-02-13 Points : -12
| Subject: How to lock skins. Sat 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; } | |
|
[LSG]Valdez[NTB] NTB Leader
Number of posts : 204 Age : 31 Location : Ocean Docks, Willowfield, Drinking a Beer Registration date : 2009-02-13 Points : 23
| Subject: Re: How to lock skins. Sat Feb 14, 2009 8:22 am | |
| Command to lock skin is koo I want this command. | |
|
[TDB]Burnz TDB Co-Leader/Server Admin
Number of posts : 336 Age : 27 Location : Smokin' weed sumwhere Registration date : 2009-02-17 Points : -9
| Subject: Re: How to lock skins. Wed Feb 18, 2009 5:00 am | |
| That's koo, I might get a own skin if I ask rab to give me one. | |
|
[LSB]Clinz Lead admin / Scripter
Number of posts : 16 Registration date : 2009-02-12 Points : 12
| Subject: Re: How to lock skins. Sun 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; } | |
|
Sponsored content
| Subject: Re: How to lock skins. | |
| |
|