Onplayerrequestspawn bugged again
#10

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;
}
Reply


Messages In This Thread
Onplayerrequestspawn bugged again - by KillerStrike23 - 01.05.2014, 15:24
Re: Onplayerrequestspawn bugged again - by KillerStrike23 - 01.05.2014, 18:29
Re: Onplayerrequestspawn bugged again - by AphexCCFC - 01.05.2014, 19:38
Re: Onplayerrequestspawn bugged again - by XK - 01.05.2014, 19:46
Re: Onplayerrequestspawn bugged again - by KillerStrike23 - 01.05.2014, 19:54
Re: Onplayerrequestspawn bugged again - by Konstantinos - 01.05.2014, 19:55
Re: Onplayerrequestspawn bugged again - by KillerStrike23 - 01.05.2014, 19:57
Re: Onplayerrequestspawn bugged again - by Konstantinos - 01.05.2014, 20:01
Re: Onplayerrequestspawn bugged again - by KillerStrike23 - 01.05.2014, 20:02
Re: Onplayerrequestspawn bugged again - by Konstantinos - 01.05.2014, 20:08

Forum Jump:


Users browsing this thread: 4 Guest(s)