what to edit in this code to 2 teams can opet gate? I NEED HELP URGENT
#1

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)