CMD /respawncars with radius but I want respawn all cars
#6

Fixed
PHP код:
CMD:respawnallcars(playerid, params[])
{
    new 
string[128];
    new 
vehicleid = GetPlayerVehicleID(playerid);
    if (
PlayerInfo[playerid][pAdmin] < 3) return SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
    {
                for(new 
i = 1, j = GetVehicleModel(vehicleid); i <= j; i++) // vehicleids start at 1
                
{
                              
SetVehicleToRespawn(i);
                              
format(string, sizeof(string), "You have respawned vehicle ID %d.", i);
                              
SendClientMessageEx(playerid, COLOR_GREY, string);
                }
    }
    return 
1;
} 
Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)