SA-MP Forums Archive
[Help] How to make team's - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] How to make team's (/showthread.php?tid=129233)



[Help] How to make team's - dclaw - 21.02.2010

How do i make an Red, And green team?
Red Vs Green

Who can help my?
I will really thank you


Re: [Help] How to make team's - VonLeeuwen - 21.02.2010

https://sampwiki.blast.hk/wiki/PAWN_tuto...eam_deathmatch


Re: [Help] How to make team's - aircombat - 21.02.2010

Top Of Script :
Код:
#define Green_Team 0
#define Red_TEAM 1
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
new gTeam[MAX_PLAYERS];
Код:
public OnPlayerRequestClass(playerid, classid)
{
switch (classid)
	{
		case 0: // case 0 is the class id (first AddPlayerClass is 0)
		{
			GameTextForPlayer(playerid, "~g~Green", 1000, 3);
			SetPlayerColor(playerid,COLOR_GREEN);
			gTeam[playerid] = Green_Team;
		}
		case 1:
		{
			GameTextForPlayer(playerid, "~r~Red", 1000, 3);
			SetPlayerColor(playerid,COLOR_RED);
			gTeam[playerid] = Red_TEAM;
		}
}
	return 1;

}
________
Michigan dispensaries