Make car re-spawn.
#7

Quote:
Originally Posted by Lauder
Посмотреть сообщение
How do I add this to my SV?
First you add the timer in the gamemodeinit call back.
pawn Код:
SetTimer("VehRespawn", 15000, true);
And then add this somewhere in your script.
pawn Код:
forward VehRespawn();
public VehRespawn()
{
// loop through the static vehicles or just MAX_VEHICLES and respawn them
}
EDIT: By the way, if you are saving all the vehicles on your server (custom vehicle system or so), you can simply make a timer which checks the old coordinates, and the new ones, and then respawn the vehicle if it's not at the spawn coordinates.
Reply


Messages In This Thread
Make car re-spawn. - by RiChArD_A - 13.02.2013, 21:01
Re: Make car re-spawn. - by DaRk_RaiN - 13.02.2013, 21:11
DaRk_RaiN - by RiChArD_A - 13.02.2013, 21:33
Re: Make car re-spawn. - by MattSlater - 13.02.2013, 22:32
Respuesta: Re: Make car re-spawn. - by RiChArD_A - 13.02.2013, 23:25
Re: Make car re-spawn. - by macparas - 14.02.2013, 04:03
Re: Make car re-spawn. - by zxc1 - 14.02.2013, 11:05
Re: Make car re-spawn. - by adsy - 14.02.2013, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)