[HELP] Faction skins
#2

You need to put the GetPlayerSkin command where the "if gTeam" is placed. Turn them around and people will get kicked for having the skin incase of being in a gTeam.

Код:
if(gTeam[playerid] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pTeam] == 1)
    {
        if(GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 284 || GetPlayerSkin(playerid) == 265 || GetPlayerSkin(playerid) == 266 ||
    GetPlayerSkin(playerid) == 285)
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "You are not allowed to enter this skin. (Kicked)");
            Kick(playerid);
        }
    }
I think you mean something doing it like this;
Reply


Messages In This Thread
[HELP] Faction skins - by Fredden1993 - 22.05.2011, 12:57
Re: [HELP] Faction skins - by joeri55 - 22.05.2011, 13:04
Re: [HELP] Faction skins - by xalith - 22.05.2011, 13:17
Re: [HELP] Faction skins - by Fredden1993 - 22.05.2011, 13:27

Forum Jump:


Users browsing this thread: 1 Guest(s)