[HELP] Respawn Empty Cars ONLY
#2

Take a look at this example I wrote a while ago:
pawn Код:
forward RespawnCars();
public RespawnCars()
{
   new
      needed[MAX_VEHICLES],
      i,
      v;
     
   while(i != MAX_PLAYERS)
   {
       needed[GetPlayerVehicleID(i)] = (IsPlayerInAnyVehicle(i) == 1) ? (1) : (0);
            ++i;
   }
   while(v != MAX_VEHICLES)
   {
       if(!needed[v]) SetVehicleToRespawn(v);
       ++v;
   }
   return 1;
}
Reply


Messages In This Thread
[HELP] Respawn Empty Cars ONLY - by Camacorn - 06.11.2010, 18:37
Re: [HELP] Respawn Empty Cars ONLY - by RyDeR` - 06.11.2010, 18:42
Re: [HELP] Respawn Empty Cars ONLY - by DeathOnaStick - 06.11.2010, 18:43
Re: [HELP] Respawn Empty Cars ONLY - by Camacorn - 06.11.2010, 19:03
Re: [HELP] Respawn Empty Cars ONLY - by DeathOnaStick - 06.11.2010, 19:29

Forum Jump:


Users browsing this thread: 2 Guest(s)