SetVehicleHealth weird issue. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetVehicleHealth weird issue. (
/showthread.php?tid=437816)
SetVehicleHealth weird issue. -
Goldilox - 17.05.2013
It fires up the vehicle. I don't have any idea what's wrong.
pawn Код:
if(!strcmp(cmd, "/fix",true))
{
if(PlayerInfo[playerid][AdminLevel] >= 3)
{
new Float:health, vehicleid =GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid, health);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_GREY,"You have to be in a vehicle in order to repair.");
SetVehicleHealth(vehicleid, 100);
GameTextForPlayer(playerid, "Vehicle repaired", 1000, 5);
}
else return 0;
return 1;
}
AW: SetVehicleHealth weird issue. -
xerox8521 - 17.05.2013
1000 is full health the vehicle starts burning at 249 health
Edit: Also you should use RepairVehicle(vehicleid); to fix the actual car like doors tires etc
Re: SetVehicleHealth weird issue. -
Abhishek. - 17.05.2013
lol veh. Max health is a 1000
Re: AW: SetVehicleHealth weird issue. -
Littlehelper - 17.05.2013
Quote:
Originally Posted by xerox8521
1000 is full health the vehicle starts burning at 249 health
Edit: Also you should use RepairVehicle(vehicleid); to fix the actual car like doors tires etc
|
This