[Ajuda] Comando Resetar veiculos sem Uso
#4

PHP код:
CMD:rc(playerid) {
    if (
APlayerData[playerid][PlayerLevel] >= 1) {
        new 
str[128], bool:vehicle[MAX_VEHICLES], AdminName[24];
        
GetPlayerName(playeridAdminNamesizeof(AdminName));
        
format(strsizeof(str), "{00FF00}O Administrador {FFFFFF}%s {00FF00}resetou todos os veiculos sem uso!"AdminName);
        
SendClientMessage(playerid, -1str);
        for(new 
1GetVehicleModel(j); ++j) {
        
vehicle[j] = false;
            for(new 
iGetMaxPlayers(); p; ++i) {
                if(!
IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i) )
                continue;
            }
        }
        if(
IsPlayerInVehicle(ij)) {
            
vehicle[j] = true;
            break;
        }
        if(!
vehicle[j]) {
            if(!
Cargavariavel) { 
                
SetVehicleToRespawn(j);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Comando Resetar veiculos sem Uso - by M4h4V4ilo - 29.03.2015, 16:21
Re: Comando Resetar veiculos sem Uso - by ViictorDaay- - 29.03.2015, 16:35
Re: Comando Resetar veiculos sem Uso - by M4h4V4ilo - 29.03.2015, 16:39
Re: Comando Resetar veiculos sem Uso - by ipsLuan - 29.03.2015, 16:50
Re: Comando Resetar veiculos sem Uso - by ViictorDaay- - 29.03.2015, 16:51
Re: Comando Resetar veiculos sem Uso - by LockedLucas - 29.03.2015, 16:52
Re: Comando Resetar veiculos sem Uso - by M4h4V4ilo - 29.03.2015, 17:04
Re: Comando Resetar veiculos sem Uso - by ViictorDaay- - 29.03.2015, 17:07
Re: Comando Resetar veiculos sem Uso - by M4h4V4ilo - 29.03.2015, 17:12
Re: Comando Resetar veiculos sem Uso - by LockedLucas - 29.03.2015, 17:13

Forum Jump:


Users browsing this thread: 1 Guest(s)