22.05.2009, 18:05
I have a problem. I want to set like if player is admin, he can get that skin, but when I am admin, I can't get that skin..
It is under OnPlayerRequestSpawn.
Sorry for my bad English.
It is under OnPlayerRequestSpawn.
pawn Код:
if(GetPlayerSkin(playerid) == 123)
{
if(!IsPlayerAdmin(playerid) || !IsPlayerModerator(playerid) || GetPlayerAdminLevel(playerid) == 0)
{
SendClientMessage(playerid, COLOR_RED, "This skin is only for admins.");
return 0;
}
return 1;
}