Respawn All Vehicles command.
#1

hi. I attempted a command that respawns all vehicles. The command itself works, but all vehicles get respawned and then the server crashes.

I tried to get it to only respawn empty vehicles. Here is the code in the timer:

pawn Код:
public RespawnVeh()
{
  for(new v=0; v<MAX_VEHICLES; v++)
  {
      for(new i=0; i<MAX_PLAYERS; i++)
      {
        if(IsPlayerInVehicle(i,v)){}
        else SetVehicleToRespawn(v);
      }
    }
    return 1;
}
What have I done wrong here, or is this way which I've done not possible?
Reply


Messages In This Thread
Respawn All Vehicles command. - by Badger(new) - 21.05.2009, 00:48
Re: Respawn All Vehicles command. - by -eXo - 21.05.2009, 01:08
Re: Respawn All Vehicles command. - by GammerZ - 21.05.2009, 01:48
Re: Respawn All Vehicles command. - by Badger(new) - 21.05.2009, 11:05
Re: Respawn All Vehicles command. - by Badger(new) - 21.05.2009, 22:41

Forum Jump:


Users browsing this thread: 1 Guest(s)