/vrespawn
#10

pawn Код:
dcmd_vrespawn(playerid, params[]) {
    #pragma unused params
    if(pi[playerid][admin] > 0) {
        new bool:VehicleUsed[MAX_VEHICLES], i;
        for( ; i != MAX_PLAYERS; i++) {
            if(IsPlayerInAnyVehicle(i)) {
                VehicleUsed[GetPlayerVehicleID(playerid)] = true;
            }
        }
        for(i = 1; i != MAX_VEHICLES; i++) {
            if(VehicleUsed[i] == false) {
                SetVehicleToRespawn(i);
            }
        }
        return SendClientMessageToAll(COLOUR_YELLOW,"All unoccupied vehicles has been respawned");
    }
    return 0;
}
Reply


Messages In This Thread
/vrespawn - by Dolph - 04.08.2010, 14:55
Re: /vrespawn - by Jeffry - 04.08.2010, 14:57
Re: /vrespawn - by Mike Garber - 04.08.2010, 15:00
Re: /vrespawn - by Dolph - 04.08.2010, 15:05
Re: /vrespawn - by Dolph - 04.08.2010, 15:35
Re: /vrespawn - by Hiddos - 04.08.2010, 15:40
Re: /vrespawn - by Mike Garber - 04.08.2010, 15:40
Re: /vrespawn - by Hiddos - 04.08.2010, 15:47
Re: /vrespawn - by Jeffry - 04.08.2010, 16:26
Re: /vrespawn - by Nero_3D - 04.08.2010, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)