01.05.2014, 20:08
Setting the health in class selections makes no sense:
pawn Код:
// global:
new bool: Player_AdminSkinWarning[MAX_PLAYERS char];
// OnPlayerConnect:
Player_AdminSkinWarning{playerid} = false;
public OnPlayerRequestSpawn(playerid)
{
//------------------------Admin Only Skin------------------------------------------
if (ServerInfo[AdminOnlySkins] && GetPlayerSkin(playerid) == ServerInfo[AdminSkin])
{
if (!PlayerInfo[playerid][Level])
{
if (!Player_AdminSkinWarning{playerid})
{
Player_AdminSkinWarning{playerid} = true;
SendClientMessage(playerid, red, "You are not an admin to use admin skin");
}
return 0;
}
}
return 1;
}