[HELP] What's wrong with this?
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(PlayerInfo[playerid][pTeam] != 1)
    {
        if(GetPlayerSkin(playerid) == 105 || GetPlayerSkin(playerid) == 106 || GetPlayerSkin(playerid) == 107 || GetPlayerSkin(playerid) == 195)
        {
            SendClientMessage(playerid, COLOR_WHITE, "You are not allowed to use this skin. (Team-Skin)");
            ForceClassSelection( playerid );
            return 0;
        }
    }
    if(PlayerInfo[playerid][pTeam] != 2)
    {
        if(GetPlayerSkin(playerid) == 102 || GetPlayerSkin(playerid) == 103 || GetPlayerSkin(playerid) == 104)
        {
            SendClientMessage(playerid, COLOR_WHITE, "You are not allowed to use this skin. (Team-Skin)");
            ForceClassSelection( playerid );
            return 0;
        }
    }
    if(PlayerInfo[playerid][pTeam] != 3)
    {
        if(GetPlayerSkin(playerid) == 114 || GetPlayerSkin(playerid) == 115 || GetPlayerSkin(playerid) == 116 || GetPlayerSkin(playerid) == 41)
        {
            SendClientMessage(playerid, COLOR_WHITE, "You are not allowed to use this skin. (Team-Skin)");
            ForceClassSelection( playerid );
            return 0;
        }
    }
    if(PlayerInfo[playerid][pTeam] != 4)
    {
        if(GetPlayerSkin(playerid) == 108 || GetPlayerSkin(playerid) == 109 || GetPlayerSkin(playerid) == 110)
        {
            SendClientMessage(playerid, COLOR_WHITE, "You are not allowed to use this skin. (Team-Skin)");
            ForceClassSelection( playerid );
            return 0;
        }
    }
    if(PlayerInfo[playerid][pTeam] != 5)
    {
        if(GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 284 || GetPlayerSkin(playerid) == 93 || GetPlayerSkin(playerid) == 285)
        {
            SendClientMessage(playerid, COLOR_WHITE, "You are not allowed to use this skin. (Team-Skin)");
            ForceClassSelection( playerid );
            return 0;
        }
    }
    if(PlayerInfo[playerid][pTeam] != 6)
    {
        if(GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 284 || GetPlayerSkin(playerid) == 93 || GetPlayerSkin(playerid) == 285)
        {
            SendClientMessage(playerid, COLOR_WHITE, "You are not allowed to use this skin. (Team-Skin)");
            ForceClassSelection( playerid );
            return 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] What's wrong with this? - by ChaosLad - 25.09.2011, 16:44
Re: [HELP] What's wrong with this? - by aRoach - 25.09.2011, 16:57
Re: [HELP] What's wrong with this? - by ChaosLad - 25.09.2011, 17:07
Re: [HELP] What's wrong with this? - by ChaosLad - 26.09.2011, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)