Help With Repair Command Doesnt Work
#2

Try this.
Код:
  if(strcmp(cmdtext, "/pdrepair", true) == 0)
  {
	if(IsPlayerConnected(playerid))
	{
      if(PlayerInfo[playerid][pLeader] == 1)
      {
        if(GetPlayerState(playerid) == 2)
        {
          SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
  	      SendClientMessage(playerid, GREEN, "Your Car has been Repaired");
    	}
  	    else
        {
          SendClientMessage(playerid, RED, "You're not driving a vehicle!");
     	}
      }
      else
      {
        SendClientMessage(playerid, RED, "You're not the Police Chief !");
      }
    }
    return 1;
  }
Reply


Messages In This Thread
Help With Repair Command Doesnt Work - by hector_williams - 19.12.2009, 03:09
Re: Help With Repair Command Doesnt Work - by Lynn09© - 19.12.2009, 03:48
Re: Help With Repair Command Doesnt Work - by [WF]Demon - 19.12.2009, 06:29
Re: Help With Repair Command Doesnt Work - by Lynn09© - 19.12.2009, 07:09
Re: Help With Repair Command Doesnt Work - by hector_williams - 19.12.2009, 14:42

Forum Jump:


Users browsing this thread: 1 Guest(s)