[Ajuda] ajuda aqui rapidao
#1

bom eu fiz esse codigo aki mais um cara falou que isso nao й um rank alguem pode me ajudar a transformar em um ?

PHP код:
 dcmd_rank(playeridparams [])
{
    
#pragma unused params
    
if(Player[playerid][pLogged] == false)
        return 
SendClientMessage(playeridCOR_ERRO"ERRO: Vocк nгo estб logado para utilizar este comando!");
    
ShowPlayerDialog(playerid9999DIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Top Players On-line""{1D4FC4}» {ffffff}kills\n{1D4FC4}» {ffffff}Score\n{1D4FC4}» {ffffff}money\n{1D4FC4}» {ffffff}Mais Procurados\n{1D4FC4}""Selecionar","Cancelar");
    return 
1;

PHP код:
     if(dialogid == 9999)
{
    if(
response//Ao Clickar no primeiro botгo
    
{
            if(
listitem == 0//Kills
{
    new 
string[128], name[24];
    for ( new 
0MAX_PLAYERSi++ )
       {
        if(
topKill Player[i][pMatou]) {
            
topKill Player[i][pMatou];
            
GetPlayerName(playeridnamesizeof(name));
            
format(stringsizeof(string), " {00FF00}%s{FF5A00} | Kills: %i",nametopKill);
        }
    }
    
ShowPlayerDialog(playeridD_RankDIALOG_STYLE_MSGBOX,"{ff0000}» {ffffff} Rei dos Kills ",string,"ok","Voltar");
    return 
1;
}
            if(
listitem == 1// Score
            
{
                new 
string[128], info[2048], name[24];
                for ( new 
0MAX_PLAYERSi++ )
                
GetPlayerName(playeridname24);
                
format(stringsizeof(string), " {00FF00}%s{FF5A00} | score: %i",nameGetPlayerScore(playerid));
                
strcat(infostring);
                
ShowPlayerDialog(playeridD_Rank+1DIALOG_STYLE_MSGBOX,"{ff0000}» {ffffff} Rei dos Scores ",info,"ok","Voltar");
                return 
1;
            }
            if(
listitem == 2//Money
            
{
                new 
string[128], info[2048], name[24];
                for ( new 
0MAX_PLAYERSi++ )
                
GetPlayerName(playeridname24);
                
format(stringsizeof(string), " {00FF00}%s{FF5A00} | Dinheiro: %i",nameGetPlayerMoney(playerid));
                
strcat(infostring);
                
ShowPlayerDialog(playeridD_Rank+2DIALOG_STYLE_MSGBOX,"{ff0000}» {ffffff} Rei dos Scores ",info,"ok","Voltar");
                return 
1;
            }
            if(
listitem == 3//Mais Procurado
            
{
                new 
string[128], info[2048], name[24];
                for ( new 
0MAX_PLAYERSi++ )
                
GetPlayerName(playeridname24);
                
format(stringsizeof(string), " {00FF00}%s{FF5A00} | Nivel de procurado: %i",nameGetPlayerWantedLevel(playerid));
                
strcat(infostring);
                
ShowPlayerDialog(playeridD_Rank+3DIALOG_STYLE_MSGBOX,"{ff0000}» {ffffff} Rei dos Scores ",info,"ok","Voltar");
                return 
1;
              }
        }
    } 
Reply
#2

?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)