SA-MP Forums Archive
what to edit in this code to 2 teams can opet gate? I NEED HELP URGENT - 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: what to edit in this code to 2 teams can opet gate? I NEED HELP URGENT (/showthread.php?tid=110173)



what to edit in this code to 2 teams can opet gate? I NEED HELP URGENT - buonggiorno - 25.11.2009

hi i want to 2 teams ( police and fbi ) can open this gate, code is donw

Код:
if (strcmp(cmdtext, "/o", true)==0)
	{
		if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
		{
  		MoveObject(pgate,818.433,-2517.337,1.256, 8.0);
			SendClientMessage(playerid, COLOR_GREEN, "GATE OPEN.");
		}
		else return SendClientMessage(playerid, COLOR_GREEN, "NOT PD OR FBI.");
	}
	if (strcmp(cmdtext, "/C", true)==0)
	{
		if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
		{
  		      MoveObject(pgate,818.433,-2517.337,8.556, 8.0);
			SendClientMessage(playerid, COLOR_GREEN, "GATE CLOSED.");
		}
		else return SendClientMessage(playerid, COLOR_GREEN, "NOT PD OR FBI.");
	}
what to edit here that police and fbi can open gate? tnx to all