28.08.2009, 05:43
I would still use native functions rather then my own variables to find the players skin, since they are the most accurate.
But your example would work
But your example would work
pawn Код:
public OnPlayerSpawn(playerid)
{
if(GetPlayerSkin(playerid) == 0)
{
SetPlayerSkin(playerid, 135);
PlayerInfo[playerid][pChar] = 135;
SendClientMessage(playerid, COLOR, "You can't use CJs skin. Changing to another one. Press F4 if you want to select a new skin");
}
}