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

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

Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)