problem with command /ram
#1

When NG / Cop write the / ram says "you are not a Cop / Soldier!"

Please help me to fix this command:

Код:
	}
	if(strcmp(cmd, "/ram", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
      if(gTeam[playerid] == 2 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 10)
      {
        for(new i = 0; i < sizeof(HouseInfo); i++)
				{
					if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
					{
					  SetPlayerInterior(playerid,HouseInfo[i][hInt]);
						SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
						GameTextForPlayer(playerid, "~r~Breached the door", 5000, 1);
						PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
						PlayerInfo[playerid][pLocal] = i;
					}
				}
      }
      else
      {
        SendClientMessage(playerid, COLOR_GREY, "  You are not a Cop / Soldier !");
			  return 1;
      }
		}
		return 1;
	}
This is the code
Reply


Messages In This Thread
problem with command /ram - by dlc - 02.05.2009, 10:32
Re: problem with command /ram - by HB - 02.05.2009, 10:34
Re: problem with command /ram - by Gappy - 02.05.2009, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)