Automatic Vehicle Respawn Problem
#6

Код HTML:
forward VehicleRespawn(playerid);
public VehicleRespawn(playerid)
{
      foreach(Player, player)
      {
      if(!IsVehicleOccupied(player)) SetVehicleToRespawnEx(player);
      }
      for(new car = 0; car <= MAX_VEHICLES; car++)
      {
          if(!IsVehicleOccupied(car) && !IsATrailer(car)) SetVehicleVirtualWorld(car, 1);

      }
      return 1;
}


stock IsATrailer(vehicleid) {
	switch(GetVehicleModel(vehicleid)) {
		case 435, 450, 584, 591: return 1;
	}
	return 0;
}
Now, the trailers won't be respawned.
Reply


Messages In This Thread
Automatic Vehicle Respawn Problem - by xxxSpeedxxx - 01.06.2016, 23:48
Re: Automatic Vehicle Respawn Problem - by BR3TT - 01.06.2016, 23:54
Re: Automatic Vehicle Respawn Problem - by Jefff - 02.06.2016, 01:43
Re: Automatic Vehicle Respawn Problem - by Sew_Sumi - 02.06.2016, 02:09
Re: Automatic Vehicle Respawn Problem - by Micko123 - 02.06.2016, 04:46
Re: Automatic Vehicle Respawn Problem - by Nin9r - 02.06.2016, 09:57
Re: Automatic Vehicle Respawn Problem - by xxxSpeedxxx - 02.06.2016, 10:10
Re: Automatic Vehicle Respawn Problem - by Dayrion - 02.06.2016, 10:26

Forum Jump:


Users browsing this thread: 1 Guest(s)