Refill vehicle at respawn - 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: Refill vehicle at respawn (
/showthread.php?tid=384743)
Refill vehicle at respawn -
MrBlake - 13.10.2012
How to refill the civil cars with 100 fuel at respawn?
Re: Refill vehicle at respawn -
[MG]Dimi - 13.10.2012
pawn Код:
public OnVehicleSpawn(vehicleid)
{
SetVehicleFuel(vehicleid,100); //or whatever you use to change fuel value
return 1;
}
Re: Refill vehicle at respawn -
_Khaled_ - 13.10.2012
if civil cars for example
pawn Код:
if(vehicleid != [ARMY/COPS/CIA/MEDIC]Vehicle IDs)
{
SetVehicleFuel(vehicleid,100); //or whatever you use to change fuel value
return 1;
}
I don't know your gamemode.