SA-MP Forums Archive
[HELP] Multiple Classids - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: [HELP] Multiple Classids (/showthread.php?tid=300525)



[HELP] Multiple Classids - olabv - 30.11.2011

Hello, i am currently working on a CnR / Gangwar Server and i was wondering if its anyway to do multiple classids instead of one and one.

Код:
public SetPlayerTeamFromClass(playerid, classid)
{
	if (classid == 0) <------ make this like classid == 0,1,2,3,4  or something?
	{
		gTeam[playerid] = TEAM_GROVE;
	}
Any help will be Appreciated

+Rep for helping me


Re: [HELP] Multiple Classids - Mauzen - 30.11.2011

You mean something like this?

pawn Код:
//  classid == 0 OR classid == 1 OR classid == 2 OR ...
if (classid == 0 || classid == 1 || classid == 2 || ...)
    {
        gTeam[playerid] = TEAM_GROVE;
    }



Re: [HELP] Multiple Classids - olabv - 30.11.2011

yeah i think. if its like: if class = 1 or 2 or 3 or 4 then color = green