[Ajuda] Comandos e Erros
#3

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/recorde"true) == 0)
    {
        
MaiorNivel()
        return 
1;
    }
    return 
1;
}
MaiorNivel()
{
    new
        
PlayerID = -1,
        
MaiorLevel,
        
string[128]
    ;
    for(new 
0MAX_PLAYERSi++)
    {
        if(!
IsPlayerConnected(i))
            continue
        ;
        if(
GetPlayerScore(i) > MaiorLevel)
        {
            
PlayerID i;
            
MaiorLevel GetPlayerScore(i);
        }
    }
    if(
PlayerID == -1)
        return
    ;
    new 
Name[MAX_PLAYER_NAME];
    
GetPlayerName(PlayerIDNameMAX_PLAYER_NAME);
    
format(stringsizeof(string), "%s (ID: %d) [Level: %d] й o player com o maior nнvel conectado no servidor!"NamePlayerIDGetPlayerScore(i));
    
SendClientMessageToAll(-1string);

Reply


Messages In This Thread
Comandos e Erros - by DeusGrego - 29.03.2019, 01:20
Re: Comandos e Erros - by SrBlu - 29.03.2019, 02:59
Re: Comandos e Erros - by XandyMello - 30.03.2019, 01:36
Re: Comandos e Erros - by DeusGrego - 31.03.2019, 23:06
Re: Comandos e Erros - by Felipealves - 31.03.2019, 23:46
Re: Comandos e Erros - by DeusGrego - 31.03.2019, 23:52
Re: Comandos e Erros - by NWDMadara - 01.04.2019, 01:54
Re: Comandos e Erros - by JeffSantos2 - 01.04.2019, 10:31
Re: Comandos e Erros - by NWDMadara - 01.04.2019, 21:35
Re: Comandos e Erros - by JeffSantos2 - 02.04.2019, 01:39
Re: Comandos e Erros - by NWDMadara - 02.04.2019, 03:04

Forum Jump:


Users browsing this thread: 1 Guest(s)