[SOLVED] Fix command problems :\
#5

try that :
Код:
if (!strcmp("/fix", cmdtext))
{
      new Float:health;
	 new veh;
	 veh = GetPlayerVehicleID(playerid);
	 GetVehicleHealth(veh, health);
	 if(GetPlayerMoney(playerid) < 999) return SendClientMessage(playerid, COLOR_YELLOW, "Your Car Can't Be Fixed Because You're Too Poor. R.I.P If It's In Fire.");
      else if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You're Not In A Vehicle! What Do You Want To Repair?");
      else if(health > 1000) return SendClientMessage(playerid,COLOR_BRIGHTRED,"Doesn't need repairing!");
	 else
  	 {
  	 RepairVehicle(GetPlayerVehicleID(playerid));
    	 GivePlayerMoney(playerid, -1000);
    	 SendClientMessage(playerid, COLOR_SKYBLUE, "You Fixed Your Car For 1000$");
	 } 
      return 1;
}
________
DEPRESSION FORUMS
Reply


Messages In This Thread
[SOLVED] Fix command problems :\ - by pmk1 - 07.03.2010, 00:03
Re: I'd need some help with a problem :\ - by Torran - 07.03.2010, 00:09
Re: I'd need some help with a problem :\ - by aircombat - 07.03.2010, 00:13
Re: I'd need some help with a problem :\ - by pmk1 - 07.03.2010, 00:14
Re: I'd need some help with a problem :\ - by aircombat - 07.03.2010, 00:21
Re: I'd need some help with a problem :\ - by pmk1 - 07.03.2010, 00:31
Re: I'd need some help with a problem :\ - by aircombat - 07.03.2010, 00:33
Re: I'd need some help with a problem :\ - by pmk1 - 07.03.2010, 00:38
Re: [SOLVED] Fix command problems :\ - by aircombat - 07.03.2010, 00:43
Re: [SOLVED] Fix command problems :\ - by tuuler - 23.08.2011, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)