pawn Код:
#include a_samp
#include zcmd
#include math
public OnGameModeInit()
{
SetTimer("DelCars", 100000, true); //100,000- every 1'30 min
return 1;
}
forward DelCars();
public DelCars()
{
cmd_deletecars(-1, "");
return 1;
}
COMMAND:delcars(playerid, params[])
{
for(new i = 1; i < MAX_VEHICLES; i ++)
if(MPGetVehicleDriverCount(i) == 0) DestroyVehicle(i);
return 1;
}