SA-MP Forums Archive
Team Skins - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Team Skins (/showthread.php?tid=435600)



Team Skins - Squirrel - 07.05.2013

Alright so I want to make this. If the player pTeam is 0 it will do nothing (working), but if the team is pTeam 1 it will show other skins ids.

Basicaly I want to make is that you can have pTeam skins that will show only for your team. For example if your team is pTeam 1 it will show you some other skins that you cannot see without it.

pawn Код:
switch (classid)
    {
        case 0 .. 10:
        {
            gTeam[playerid] = POLICE;
            GameTextForPlayer(playerid, "~b~Police~b~", 1000, 5);
        }
        case 11 .. 13:
        {
            gTeam[playerid] = LATIN_KINGS;
            GameTextForPlayer(playerid, "~y~Latin Kings~y~", 1000, 5);
        }
        case 14 .. 16:
        {
            gTeam[playerid] = BALAS;
            GameTextForPlayer(playerid, "~p~Balas", 1000, 5);
        }
        case 17:
        {
            if(PlayerInfo[playerid][pTeam] == 0)
            {
                        //This one is working
                gTeam[playerid] = MY_TEAM;
                GameTextForPlayer(playerid, "~w~Custom Team", 1000, 5);
            }
            else if(PlayerInfo[playerid][pTeam] == 1)
            {
                //Show pTeam 1 skins?
            }
        }
    }
    return 1;
}



AW: Team Skins - Squirrel - 07.05.2013

nvm resolved!