Forward function when a vehicle re-spawn - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Forward function when a vehicle re-spawn (
/showthread.php?tid=214626)
Forward function when a vehicle re-spawn -
[LRS.Daniel] - 21.01.2011
Hi!
I want to do something, when a vehicle respawned (not exploded). I don't know that the OnVehicleDeath() function is called when a vehicle respawn.
Thank you.
Re: Forward function when a vehicle re-spawn -
ExeC - 21.01.2011
pawn Код:
public OnVehicleSpawn(vehicleid)
{
return 1;
}
?
Re: Forward function when a vehicle re-spawn -
[LRS.Daniel] - 21.01.2011
The OnVehicleSpawn() function call when a vehicle general spawn. But I need a function, when a vehicle re-spawn (for example, There isn't nobody in the vehicle much time, and the servere put the vehicle to his spawn point).
Re: Forward function when a vehicle re-spawn -
Kwarde - 21.01.2011
CreateVehicle(vehicletype, Float, Float:y, Float:z, Float:rotation, color1, color2, respawn_relay);
Re: Forward function when a vehicle re-spawn -
[LRS.Daniel] - 21.01.2011
Yes, I think this. If the player leave vehicle, after respawn_delay time the vehicle respawn. But I don't want use timers, to do this. There isn't be any forward function what call when a server respawn the vehicle?