Destroy cars command
#4

The easiest way:
Код:
if(strcmp(cmd, "/destroycreatedcars", true) == 0)
  {
   if(PlayerInfo[playerid][pAdmin] >=8)
   {
     for(new x=349;x<MAX_VEHICLES;x++)if(IsVehicleConnected(x)) DestroyVehicle(x);
             return 1;
   }

  }
Код:
stock IsVehicleConnected(vehicleid) // Mастерминд
{
  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: 1 Guest(s)