Team problem
#1

Alright so I want to make that the first team can choose any skin from 0 to 264 and other team can use only from 265 to 287, but how? If I make it like this I wont be able to use it.
Код:
    for(new i = 0; i < 264; i++)
	{
    	AddPlayerClass(i, 1544.0514,-1675.7766,13.5577,98.0974, 0, 0, 0, 0, 0, 0);
	}
	
	for(new i = 265; i < 287; i++)
	{
    	AddPlayerClass(i, 1544.0514,-1675.7766,13.5577,98.0974, 0, 0, 0, 0, 0, 0);
	}
Is there any way I can use this in the code below?

For this code I gotta manualy add every skin :/
Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 0 .. 264)
    {
        gTeam[playerid] = PUBLIC_ENEMY;
    }
    if(classid == 265 .. 287)
    {
        gTeam[playerid] = POLICE;
    }
}
Reply


Messages In This Thread
Team problem - by Squirrel - 06.05.2013, 02:54
Re: Team problem - by vvhy - 06.05.2013, 03:50
AW: Team problem - by Squirrel - 06.05.2013, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)