Respawn All Vehicles command.
#5

i changed it to go a different way, but now the server crashes. It respawns all vehicles except ones with players in but then no-one can join the server, although it is still online and it shows that players are connected, when they aren't.

Here is the code:
pawn Код:
public RespawnVeh()
{
  new v;
  new i;
  while(v<340)
  {
    if(i>=200){SetVehicleToRespawn(v);v++;i=0;}
    if(IsPlayerConnected(i)!=1)i++;
    else if(!IsPlayerInVehicle(i,v))i++;
  }
  i=0;
  v=0;
  return 1;
}
i think it may be because I have:
pawn Код:
BV[0]=CreateVehicle(//etc);
lots of those so the vehicle ID would be whatever i have infront right?
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)