14.02.2013, 11:05
First you add the timer in the gamemodeinit call back.
And then add this somewhere in your script.
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.
pawn Код:
SetTimer("VehRespawn", 15000, true);
pawn Код:
forward VehRespawn();
public VehRespawn()
{
// loop through the static vehicles or just MAX_VEHICLES and respawn them
}