Command Help.
#18

Weird :P

Код:
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;
	}
}
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.
^^
Reply


Messages In This Thread
Command Help. - by BJaxx - 17.11.2010, 03:13
Re: Command Help. - by Kitten - 17.11.2010, 03:22
Re: Command Help. - by BJaxx - 17.11.2010, 03:34
Re: Command Help. - by Kitten - 17.11.2010, 03:39
Re: Command Help. - by BJaxx - 17.11.2010, 03:41
Re: Command Help. - by Kitten - 17.11.2010, 03:43
Re: Command Help. - by BJaxx - 17.11.2010, 03:46
Re: Command Help. - by Kitten - 17.11.2010, 03:52
Re: Command Help. - by BJaxx - 17.11.2010, 04:01
Re: Command Help. - by Kitten - 17.11.2010, 04:14
Re: Command Help. - by BJaxx - 17.11.2010, 04:21
Re: Command Help. - by Kitten - 17.11.2010, 04:58
Re: Command Help. - by BJaxx - 17.11.2010, 05:29
Re: Command Help. - by Kitten - 17.11.2010, 06:29
Re: Command Help. - by BJaxx - 17.11.2010, 14:02
Re: Command Help. - by BJaxx - 17.11.2010, 22:54
Re: Command Help. - by Kitten - 17.11.2010, 23:14
Re: Command Help. - by BJaxx - 18.11.2010, 02:04
Re: Command Help. - by Kitten - 18.11.2010, 02:27
Re: Command Help. - by BJaxx - 18.11.2010, 02:57
Re: Command Help. - by Kitten - 18.11.2010, 03:28
Re: Command Help. - by BJaxx - 18.11.2010, 04:16
Re: Command Help. - by Kitten - 18.11.2010, 04:37
Re: Command Help. - by Kitten - 18.11.2010, 05:05
Re: Command Help. - by BJaxx - 19.11.2010, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)