Remove unoccupied Cars
#7

pawn Код:
CMD:deletecars(playerid, params[])
{
    if(PlayerInfo[playerid][AdminLevel] >= 1)
    {
        new Iterator:UnoccupiedVehicles<MAX_VEHICLES>;
        foreach(new i : Player) Iter_Add(UnoccupiedVehicles, GetPlayerVehicleID(i));
        {
          for(new v = 0; v < MAX_VEHICLES; v++)
          {
             if(!Iter_Contains(UnoccupiedVehicles, v))
             {
               DestroyVehicle(v);
             }
          }
        }
    }
    else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast Admin Level 1 to use this command");
    SendClientMessage(playerid, COLOR_GREY, "All Unoccipied Vehicles Deleted!");
    return 1;
}
sorry and thanks
Reply


Messages In This Thread
Remove unoccupied Cars - by DarknessKnight - 11.06.2014, 16:20
Re: Remove unoccupied Cars - by Rittik - 11.06.2014, 16:32
Re: Remove unoccupied Cars - by DarknessKnight - 11.06.2014, 16:36
Re: Remove unoccupied Cars - by DarknessKnight - 11.06.2014, 16:47
Re: Remove unoccupied Cars - by xGamerFx - 11.06.2014, 17:25
Re: Remove unoccupied Cars - by DarknessKnight - 11.06.2014, 17:41
Re: Remove unoccupied Cars - by xGamerFx - 11.06.2014, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)