How to add Health to current....
#7

it kinda doesn't work :/
Code:
if(!strcmp(cmdtext, "/taisyti", true))
	{
 		if(playerDB[playerid][specialybe]!=13){SendClientMessage(playerid,RED,"* this command is only for mechanik!"); return 1;}
        if(!IsPlayerInAnyVehicle(playerid)){
				SendClientMessage(playerid,RED,"* you're not in a car");
				return 1;
		}
		if(GetPlayerMoneyA(playerid)<50)
	    {
		    SendClientMessage(playerid,RED,"* price for 100hp is 50lt");
		    return 1;
		}
		GivePlayerMoneyA(playerid,-50);
  		SendClientMessage(playerid,GREEN,"* added 100hp to vehicle!");
  		if(IsPlayerInAnyVehicle(playerid))
GetVehicleHealth(playerid, carHP);
SetVehicleHealth(playerid, carHP+100);
  		return 1;
 	}
and in top of gamemode i added

Code:
new Float:carHP;
Reply


Messages In This Thread
How to add Health to current.... - by TheYoungCapone - 10.02.2011, 23:13
Re: How to add Health to current.... - by Krx17 - 10.02.2011, 23:31
Re: How to add Health to current.... - by TheYoungCapone - 10.02.2011, 23:45
Re: How to add Health to current.... - by Dovydux - 30.12.2011, 14:33
Re: How to add Health to current.... - by Rob_Maate - 30.12.2011, 14:38
Re: How to add Health to current.... - by Dovydux - 30.12.2011, 18:51
Re: How to add Health to current.... - by Dovydux - 31.12.2011, 17:57
Re: How to add Health to current.... - by Dovydux - 31.12.2011, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)