07.05.2018, 01:22
Is it possible to return this cmd to be automatically, to respawnall cars automatically every 5 minutes?
CMD:respawnallcars(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 6) {
for(new v=0;v<MAX_VEHICLES;v++) {
if(!IsVehicleOccupied(v))
if(IsValidVehicle(v)) {
if(VehicleInfo[v][Temp] == 0) VehicleInfo[v][respawn] = 1;
EraseVehicle(v);
}
}
return SendClientMessage(playerid,0xFFFFFFAA," All empty cars were respawned !");
} else return SendClientMessage(playerid,COLOR_BRIGHTRED,"ERROR: You need to be administrator level 6 to use this command");
}
CMD:respawnallcars(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 6) {
for(new v=0;v<MAX_VEHICLES;v++) {
if(!IsVehicleOccupied(v))
if(IsValidVehicle(v)) {
if(VehicleInfo[v][Temp] == 0) VehicleInfo[v][respawn] = 1;
EraseVehicle(v);
}
}
return SendClientMessage(playerid,0xFFFFFFAA," All empty cars were respawned !");
} else return SendClientMessage(playerid,COLOR_BRIGHTRED,"ERROR: You need to be administrator level 6 to use this command");
}