Destroy cars command
#2

This will destroy all vehicles with higher ID than 348(starting from ID 349):
pawn Код:
new carid = 348;
while(IsVehicleConnected(++carid)) DestroyVehicle(carid);
pawn Код:
IsVehicleConnected(vehicleid)
{
  new Float:x, Float:y, Float:z;
  GetVehiclePos(vehicleid, x, y, z);
  if(x == 0.0 && y == 0.0 && z == 0.0) return 0;
  return 1;
}
Reply


Messages In This Thread
Destroy cars command - by Richie - 22.04.2010, 13:14
Re: Destroy cars command - by M4S7ERMIND - 22.04.2010, 13:31
Re: Destroy cars command - by Richie - 22.04.2010, 19:17
Re: Destroy cars command - by GTAguillaume - 22.04.2010, 19:21
Re: Destroy cars command - by Richie - 22.04.2010, 19:29
Re: Destroy cars command - by GTAguillaume - 22.04.2010, 19:47
Re: Destroy cars command - by Joe Staff - 22.04.2010, 19:48
Re: Destroy cars command - by Richie - 22.04.2010, 19:58
Re: Destroy cars command - by M4S7ERMIND - 22.04.2010, 20:49
Re: Destroy cars command - by Nero_3D - 22.04.2010, 20:58

Forum Jump:


Users browsing this thread: 6 Guest(s)