22.04.2010, 19:21
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; }