13.05.2010, 18:11
Funnily this is the exact same question another guy asked a few minutes ago:
http://forum.sa-mp.com/index.php?topic=173032.0
Here's my code:
http://forum.sa-mp.com/index.php?topic=173032.0
Here's my code:
Код:
public OnPlayerRequestClass(playerid,classid) { new cmpstr[MAX_PLAYER_NAME]; GetPlayerName(playerid, cmpstr, sizeof(cmpstr)); if(classid == 5 && strcmp(cmpstr,"Jay",false)) { SendClientMessage(playerid,COLOR_GREEN,"This skin is only for Jay!"); return 0; } return 1; }