Get info all player
#10

pawn Код:
stock GetHighestKills() // it will return the id of highest kills
    {
        new id = -1;
        new id2;
        for(new i = 0;i < MAX_PLAYERS)
            {
                if(IsPlayerConnected(i))
                    {
                        id2 = PlayerInfo[playerid][pKill];
                            if(id2 > id && id != -1)
                                {
                                    id = i;
                                }
                    }
            }
        return id; //if the was was empty it will return to -1; which you can say its INVALID PLAYER ID
    }
Not tested..
Reply


Messages In This Thread
Get info all player - by xganyx - 20.07.2013, 13:25
Re: Get info all player - by JimmyCh - 20.07.2013, 13:40
Re: Get info all player - by Jefff - 20.07.2013, 13:44
Re: Get info all player - by xganyx - 20.07.2013, 14:15
Re: Get info all player - by JimmyCh - 20.07.2013, 14:22
Re: Get info all player - by xganyx - 20.07.2013, 14:35
Re: Get info all player - by JimmyCh - 20.07.2013, 14:41
Re: Get info all player - by xganyx - 20.07.2013, 15:35
Re: Get info all player - by SuperViper - 21.07.2013, 01:17
Re: Get info all player - by [D]ry[D]esert - 21.07.2013, 01:35

Forum Jump:


Users browsing this thread: 1 Guest(s)