Auto 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: Auto respawn (
/showthread.php?tid=586626)
Auto respawn -
orel56000 - 23.08.2015
Hi everybody,
After about half an hour all the vehicles in the server respawning, how to disable it?
Re: Auto respawn -
Abagail - 23.08.2015
You probably have it somewhere in your code or the vehicles have a respawn parameter(note they need to be occupied once for the timer to kick in). Use CTRL+H to search for "SetVehicleToRespawn".
Re: Auto respawn -
Logofero - 23.08.2015
Quote:
Originally Posted by orel56000
Hi everybody,
After about half an hour all the vehicles in the server respawning, how to disable it?
|
Write a function of destroy vehicle
PHP код:
public OnVehicleSpawn(vehicleid) {
DestroyVehicle(vehicleid);
}
Re: Auto respawn -
Logofero - 23.08.2015
And if you mean to disable spawn, the only way
instead of the
respawn_delay put -1
PHP код:
AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, -1, addsiren=0);
Re: Auto respawn -
Abagail - 23.08.2015
He wants to disable it, not add it.