[Ajuda] Mensagem Com os maiores dados
#8

PHP Code:
public OnGameModeInit()
{
    
SetTimer("Rank"40000true);
    return 
1;
}
forward Rank(playerid);
public 
Rank(playerid)
{
    
Uol++;
    new 
Ue[128];
    new 
Ie[11];
    new 
IeID[11];
    new 
Vixi[MAX_PLAYERS];
    if (
Uol == 1)
    {
        for(new 
iGetMaxPlayers(); i++){if(IsPlayerConnected(i)) Vixi[i] = APlayerData[i][StatsTruckerJobs];}
        for(new 
i11i++){Ie[i] = -1;IeID[i] = -1;}
        for(new 
iGetMaxPlayers(); i++)
        {
            if(
IsPlayerConnected(i))
            {
                if(
Vixi[i] > Ie[1])
                {
                    
Ie[1] = Vixi[i];
                    
IeID[1] = i;
                   }
            }
            for(new 
d2d++)
            {
                if(
IeID[d] != -1)
                {
                      new 
Name[MAX_PLAYER_NAME];
                       
GetPlayerName(IeID[d], Namesizeof(Name));
                    
format(Uesizeof(Ue), "%s (%i) й o melhor caminhoneiro no momento com %i missхes completas!!"NameIeID[d], Ie[d]);
                }
            }
        }
        
SendClientMessageToAll(-1Ue);
        return 
1;
    }
    
Uol 0;
    return 
1;

Reply


Messages In This Thread
Mensagem Com os maiores dados - by matheusspohr - 15.09.2015, 16:26
Re: Mensagem Com os maiores dados - by Dayvison_ - 15.09.2015, 16:37
Re: Mensagem Com os maiores dados - by matheusspohr - 15.09.2015, 16:47
Re: Mensagem Com os maiores dados - by [BOPE]Seu._.Madruga - 15.09.2015, 16:48
Re: Mensagem Com os maiores dados - by matheusspohr - 15.09.2015, 17:00
Re: Mensagem Com os maiores dados - by [BOPE]Seu._.Madruga - 15.09.2015, 17:07
Re: Mensagem Com os maiores dados - by matheusspohr - 16.09.2015, 01:36
Re: Mensagem Com os maiores dados - by GustavoSouza - 16.09.2015, 15:37
Re: Mensagem Com os maiores dados - by matheusspohr - 17.09.2015, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)