auto respawn
#1

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");
}
Reply


Messages In This Thread
auto respawn - by nbx2000 - 07.05.2018, 01:22
Re: auto respawn - by Rektumiliam - 07.05.2018, 07:29
Re: auto respawn - by Monotox - 07.05.2018, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)