Find out who has the most score in one day
#2

Quote:
Originally Posted by earlybird325
Посмотреть сообщение
I can't see where to get that info, if that player got most score, then they get a prize.
Just sth like this:

Код:
stock CheckScore()
{
    new t=-1;
    for(new i,y; i<MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(scoreholder[i] > y) y=scoreholder[i],t=i;
    }
    if(t == -1) return SendClientMessageToAll(-1,"Nobody is online or all have score 0 ._.");
    new string[128];
    GetPlayerName(t,string,MAX_PLAYER_NAME);
    format(string,128,"Player %s (ID: %d) has the most score with: %d",string,t,scoreholder[t]);
    SendClientMessageToAll(-1,string);
    return 1;
}
Greekz
Reply


Messages In This Thread
Find out who has the most score in one day - by earlybird325 - 19.03.2015, 06:48
AW: Find out who has the most score in one day - by Kaliber - 19.03.2015, 07:24

Forum Jump:


Users browsing this thread: 2 Guest(s)