Auto respawn
#1

Hi everybody,
After about half an hour all the vehicles in the server respawning, how to disable it?
Reply
#2

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".
Reply
#3

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);

Reply
#4

And if you mean to disable spawn, the only way

instead of the respawn_delay put -1

PHP код:
AddStaticVehicleEx(modelidFloat:spawn_xFloat:spawn_yFloat:spawn_zFloat:z_anglecolor1color2, -1addsiren=0); 
Reply
#5

He wants to disable it, not add it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)