StaticVehicles Spawning with no fuel - 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: StaticVehicles Spawning with no fuel (
/showthread.php?tid=381356)
StaticVehicles Spawning with no fuel -
MrPlatinum - 29.09.2012
Hey all!
JW anyway to make vehicles spawn with fuel?
Код HTML:
AddStaticVehicle(519,4234.0430,-493.9291,11.7789,179.3983,75,118); // shamal
Re: StaticVehicles Spawning with no fuel -
XtremeR - 29.09.2012
pawn Код:
public OnVehicleSpawn(vehicleid)
{
//SetFuel 100 or something like that here
return 1;
}
Re: StaticVehicles Spawning with no fuel -
MrPlatinum - 29.09.2012
So just write
//SetFuel 100 ?
Re: StaticVehicles Spawning with no fuel -
Mr.Anonymous - 29.09.2012
What gamemode you use?
Re: StaticVehicles Spawning with no fuel -
mamorunl - 29.09.2012
Quote:
Originally Posted by XtremeR
pawn Код:
public OnVehicleSpawn(vehicleid) { //SetFuel 100 or something like that here return 1; }
|
OnVehicleSpawn does not get called at first instantiation. It is being called when a vehicle respawns.
Re: StaticVehicles Spawning with no fuel -
MrPlatinum - 29.09.2012
PPC_Trucking,