/respawnallcars
#2

pawn Код:
stock IsVehicleOccupied(vehicleid)
{
    for(new i; i < GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected(i)) continue;
        if(GetPlayerVehicleID(i) == vehicleid) return 1;
    }
    return 0;
}

CMD:respawnvehicles(playerid, params[])
{
    #pragma unused params
    for(new i; i < MAX_VEHICLES; i++) if(!IsVehicleOccupied(i)) SetVehicleToRespawn(i);
    return 1;
}
Had this lying around. Hope it helps!
Reply


Messages In This Thread
/respawnallcars - by SomebodyAndMe - 11.12.2011, 10:46
Re: /respawnallcars - by Ash. - 11.12.2011, 11:06
Re: /respawnallcars - by suhrab_mujeeb - 11.12.2011, 11:07
Re: /respawnallcars - by SomebodyAndMe - 11.12.2011, 11:25
Re: /respawnallcars - by THE_KNOWN - 11.12.2011, 11:27
Re: /respawnallcars - by Ash. - 11.12.2011, 11:58
Re: /respawnallcars - by SomebodyAndMe - 11.12.2011, 19:25
Re: /respawnallcars - by SnG.Scot_MisCuDI - 11.12.2011, 19:36
Re: /respawnallcars - by Kostas' - 11.12.2011, 19:38
Re: /respawnallcars - by suhrab_mujeeb - 12.12.2011, 09:25

Forum Jump:


Users browsing this thread: 2 Guest(s)