HOW TO NAME OPEN GATE, NOT ORGANIZATION!?
#5

ok, this is my code for open pd gate

Код:
if (strcmp(cmdtext, "/pdo", true)==0)
	{
		if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
		{
  		MoveObject(pdkapija,1587.672,-1638.206,19.376, 8.0);
			SendClientMessage(playerid, COLOR_GREEN, "OTVORILI STE KAPIJU.");
		}
		else return SendClientMessage(playerid, COLOR_GREEN, "NISTE POLICAJAC.");
	}
	if (strcmp(cmdtext, "/pdc", true)==0)
	{
		if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
		{
  		      MoveObject(pdkapija,1587.842,-1638.253,15.155, 8.0);
			SendClientMessage(playerid, COLOR_GREEN, "ZATVORILI STE KAPIJU");
		}
		else return SendClientMessage(playerid, COLOR_GREEN, "NISTE POLICAJAC.");
	}
so, what to change that just one name can open gate?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)