11.06.2014, 17:47
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;
}