[Ajuda] Sistema de reservar vaga
#2

Tenta ae
PHP код:
#define LIMIT_PLAYER    80
new TimerConnect[MAX_PLAYERS];
public 
OnPlayerRequestClass(playeridclassid

    
TimerClearTela[playerid] = SetTimerEx("ClearChatLogin"2000true"i"playerid); 
    if(
gPlayerLogged[playerid] == && NaoPodeLogar[playerid] == 0){
        
TimerConnect[playerid] = SetTimerEx("Connecting"30001"i"playerid);
    }
    return 
1

BPC:Connecting(playerid){
    new 
File[50]; 
    
format(Filesizeof(File), "Contas/%s.ini"pName[playerid]); 
    for(new 
090i++){
        if(
== LIMIT_PLAYER){
            if(
DOF2::FileExists(File))
                if(
DOF2::GetInt(File"Admin") != 0){
                     
showDialogLogin(playerid);
                     
KillTimer(TimerConnect[playerid]);
                     return 
1;
                }
            
SendClientMessage(playerid0xA9C4E4FF"Connecting to 144.217.0.35:7777..."); 
            
SendClientMessage(playerid0xA9C4E4FF"The server is full. Retrying...");
            return 
1;
        }else{
            if(
DOF2::FileExists(File)){
                
showDialogLogin(playerid);
                
KillTimer(TimerConnect[playerid]);
            }else{
                
showDialogRegister(playerid);
                
KillTimer(TimerConnect[playerid]);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Sistema de reservar vaga - by SmokeKiLL - 27.02.2019, 16:38
Re: Sistema de reservar vaga - by Felipealves - 27.02.2019, 17:40
Re: Sistema de reservar vaga - by ipsLuan - 27.02.2019, 17:50
Re: Sistema de reservar vaga - by Jonorusc - 27.02.2019, 17:56
Re: Sistema de reservar vaga - by SmokeKiLL - 27.02.2019, 18:23
Re: Sistema de reservar vaga - by ipsLuan - 27.02.2019, 18:42
Re: Sistema de reservar vaga - by GuiLopez - 27.02.2019, 18:43
Re: Sistema de reservar vaga - by SerjaumBerranteiro - 27.02.2019, 18:46
Re: Sistema de reservar vaga - by SerjaumBerranteiro - 27.02.2019, 18:49

Forum Jump:


Users browsing this thread: 2 Guest(s)