[Ajuda] Chamar stock em um comando
#6

pawn Код:
stock SSS(playerid)
{
    new killer = INVALID_PLAYER_ID;
    new noob = INVALID_PLAYER_ID;
//  new vicio = INVALID_PLAYER_ID;
    new chefao = INVALID_PLAYER_ID;
    new points[MAX_PLAYERS];
    new guerra = INVALID_PLAYER_ID;

    for(new i=0;i<HighestID+1;i++)
    {
        if(IsPlayerConnected(i))
        {
            if (killer == INVALID_PLAYER_ID || !IsPlayerConnected(killer)) killer = i;
            if (i != killer)
            {
                Info[i][Kills] > Info[killer][Kills])
                {
                    killer = i;
                }
            }

            if (noob == INVALID_PLAYER_ID || !IsPlayerConnected(noob)) noob = i;
            if (i != noob)
            {
                Info[i][Deaths] > Info[noob][Deaths])
                {
                    noob = i;
                }
            }
            /* if (vicio == INVALID_PLAYER_ID || !IsPlayerConnected(vicio)) vicio = i;
            if (i != vicio)
            {
                if(Player[i][ConnectedTick] < Player[vicio][ConnectedTick])
                {
                    vicio = i;
                }
            } */


            if (chefao == INVALID_PLAYER_ID || !IsPlayerConnected(chefao)) chefao = i;
            if (i != chefao)
            {
                if(GetPlayerMoney(i) > GetPlayerMoney(chefao))
                {
                    chefao = i;
                }
            }
        }
    }

    // Player[vicio][TimeOnline] = (GetDateAndTime() - Player[vicio][ConnectedTick]);
    new tempstring[128];
    format(tempstring, sizeof(tempstring), "[STATS] • Brasil @ Peace ! » DM. - Iniciado em %s ", StartDate);
    SendClientMessage(playerid, COLOR_COCONUT, tempstring);
    format(tempstring, sizeof(tempstring), "> Assassino: %s %d Vнtimas - Noob: %s %d Mortes",PlayerName(killer),Player[killer][Kills],PlayerName(noob),Player[noob][Deaths]);
    SendClientMessage(playerid, COLOR_TEXT1, tempstring);
    format(tempstring, sizeof(tempstring), "> Chefгo: %s %d propriedades - Magnata: %s $%d - Viciado: %s Tempo Online: %s",PlayerName(chefao),GetPlayerMoney(chefao)/*,PlayerName(vicio),Convert(Player[vicio][TimeOnline])*/);
    SendClientMessage(playerid, COLOR_TEXT1 , tempstring);
    return 1;
}
Reply


Messages In This Thread
[Ajuda] Chamar stock em um comando - by @SwY - 10.01.2012, 04:41
Re: [Ajuda] Chamar stock em um comando - by paulor - 10.01.2012, 10:21
Re: [Ajuda] Chamar stock em um comando - by Lуs - 10.01.2012, 12:46
Re: [Ajuda] Chamar stock em um comando - by @SwY - 10.01.2012, 16:12
Re: [Ajuda] Chamar stock em um comando - by Lуs - 10.01.2012, 18:55
Re: [Ajuda] Chamar stock em um comando - by @SwY - 10.01.2012, 19:21
Re: [Ajuda] Chamar stock em um comando - by Lуs - 10.01.2012, 20:01
Re: [Ajuda] Chamar stock em um comando - by Ricop522 - 10.01.2012, 20:04
Re: [Ajuda] Chamar stock em um comando - by @SwY - 10.01.2012, 20:08

Forum Jump:


Users browsing this thread: 1 Guest(s)