18.11.2010, 02:04
Weird :P
Worked great. Everybody is on the right team.
But putting id's 4-7 like how i did 0-3 didn't work at all. xD
NOW, new question.
All of the humans can't use the command, because they're not on the zombie team. (good
)
However, all of the zombies can use it. I only want the "Scout" (classid 5) to be able to use it.
^^
Код:
SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0 || 1 || 2|| 3)
{
gTeam[playerid] = TEAM_SURVIVORS;
}
if(classid == 4)
{
gTeam[playerid] = TEAM_ZOMBIES;
}
if(classid == 5)
{
gTeam[playerid] = TEAM_ZOMBIES;
}
if(classid == 6)
{
gTeam[playerid] = TEAM_ZOMBIES;
}
if(classid == 7)
{
gTeam[playerid] = TEAM_ZOMBIES;
}
}
But putting id's 4-7 like how i did 0-3 didn't work at all. xD
NOW, new question.
All of the humans can't use the command, because they're not on the zombie team. (good
)However, all of the zombies can use it. I only want the "Scout" (classid 5) to be able to use it.
^^

