[Pedido] Include detectar ESC/PAUSE
#8

Й bem mas fбcil utilizar este mйtodo, uso no meu gamemode.

PHP Code:
new AFKTime[MAX_PLAYERS];
CMD:pausados(playerid)
{
    new 
String[32], String2[128];
    
    
strcat(String2"ID\tNick\n");
    for(new 
iGetPlayerPoolSize(); <= ji++)
    {
        if(!
IsPlayerConnected(i))
                continue;
        
//Modo de verificaзгo
        
if(gettime() - AFKTime[i] > 3//3 segundos sem resposta.
        
{
            
format(String,sizeof(String),"%d\t%s\n"iGetName(i));
            
strcat(String2String);
        }
    }
    
ShowPlayerDialog(playerid1010DIALOG_STYLE_TABLIST_HEADERS"Jogadores Ausente"String2"Fechar""");
    return 
1;
}
public 
OnPlayerUpdate(playerid)
{
    
AFKTime[playerid] = gettime();
    return 
1;
}
GetName(playerID)
{
    new 
n_ome[MAX_PLAYER_NAME];
    
GetPlayerName(playerIDn_omesizeof n_ome);
    return 
n_ome;

Reply


Messages In This Thread
Include detectar ESC/PAUSE - by pdonald - 07.05.2017, 02:40
Re: Include detectar ESC/PAUSE - by CZ - 07.05.2017, 03:01
Re: Include detectar ESC/PAUSE - by idegod - 07.05.2017, 18:33
Re: Include detectar ESC/PAUSE - by CaioTJF - 07.05.2017, 18:38
Re: Include detectar ESC/PAUSE - by IlanZ - 07.05.2017, 18:50
Re: Include detectar ESC/PAUSE - by pdonald - 10.05.2017, 02:23
Re: Include detectar ESC/PAUSE - by ViniBorn - 10.05.2017, 02:34
Re: Include detectar ESC/PAUSE - by s4kuL - 10.05.2017, 03:22
Re: Include detectar ESC/PAUSE - by Scorpion659 - 10.05.2017, 03:41

Forum Jump:


Users browsing this thread: 6 Guest(s)