06.05.2013, 02:54
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.
Is there any way I can use this in the code below?
For this code I gotta manualy add every skin :/
Код:
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);
}
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;
}
}

