26.03.2014, 23:08
if you mean auto respawn every 5 mints so put that code in ongamemodeinit:
and where ever you want put that code but not in any callback:
pawn Код:
//OnGameModeInIt
SetTimer("reSpawn",300000,true);
pawn Код:
forward reSpawn();
public reSpawn()
{
for(new i=0; i<MAX_VEHICLES; i++)
{
if(UnoccupiedVehicle(i))
{
SetVehicleToRespawn(i);
}
}
return 1;
}