[Ajuda] recorde online
#2

tenta
PHP код:
//comeзo do GM

#define RECORD_ONLINE     "/GM/arquivos/Record.cfg"
new Recorde;
new 
Online;

// No OnGameModeInit

    
if(dini_Exists(RECORD_ONLINE))
        
Recorde dini_Int(RECORD_ONLINE"RecordeJogadores");
    else
    {
        
dini_Create(RECORD_ONLINE);
        
dini_IntSet(RECORD_ONLINE"RecordeJogadores"0);
        
Recorde 0;
    }

// No OnPlayerDisconnect
    
Online--;
// No OnPlayerConnect
    
Online++;
    if(
Online Recorde)
    {
        
Recorde Online;
        
dini_IntSet(RECORD_ONLINE"RecordeJogadores"Recorde);
        
format(stringsizeof(string),"O Recorde de jogadores online й: %d"Recorde);
        
SendClientMessageToAll(COLOR_YELLOW,string);
    } 
Reply


Messages In This Thread
recorde online - by VenoN - 19.10.2012, 23:38
Re: recorde online - by Q.I - 20.10.2012, 00:50
Re: recorde online - by VenoN - 20.10.2012, 01:14
Re: recorde online - by Maklister - 20.10.2012, 02:13
Re: recorde online - by zSuYaNw - 20.10.2012, 02:22

Forum Jump:


Users browsing this thread: 1 Guest(s)