20.04.2016, 19:15
(
Последний раз редактировалось J0sh...; 20.04.2016 в 19:52.
)
PHP код:
public OnPlayerRequestSpawn(playerid)
{
if(GetPlayerSkin(playerid) == 26)
{
new SkinName[MAX_PLAYER_NAME];
GetPlayerName(playerid, SkinName, sizeof(SkinName));
if(!strcmp(SkinName, "Apex", false))
{
SendClientMessage(playerid,red,"This Skin For Apex Only");
return 0;
}
}
return 1;
}
EDIT: Didn't see you solved it, good to here.
OnPlayerRequestClass is when the player switches to a new classid.
OnPlayerRequestSpawn is when the player clicks the spawn button.