ItsMods

Full Version: !shop hud to show player with highest points
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
as per title anyone, say top 3 or 4
ty
Wait i'll find function and post there

Edit:

Code:
public ServerClient getMostTop()
        {
            int temp = 0;

            ServerClient guy = null;
            List<ServerClient> players = GetClients();
            for (int i = 0; i < players.Count; i++)
            {
                if (player[i].stats.kills >= temp)
                {
                    temp = player[i].stats.kills;
                    guy = players[i];
                }
            }

            return guy;
        }
(Original credits to creators of rotu mod, i have rewritten this function to c#)
You can create variables like
Code:
serverclient top1
serverclient top2
serverclient top3

Then make it
Code:
top1 = getMostTop();
top2 = getMostTop();
top3 = getMostTop();

And add this line to 'getMostTop'
if(player[i].stats.kills >= temp && players[i] != top1 && players[i] != top3 && players[i] != top4 )
{
guy = etc....
}

Then print their names.
Code:
Use topX.Name

It was working perfectly in my killme zombiemod.
(02-21-2013, 14:12)SailorMoon Wrote: [ -> ]Wait i'll find function and post there

Edit:

Code:
public ServerClient getMostTop()
        {
            int temp = 0;

            ServerClient guy = null;
            List<ServerClient> players = GetClients();
            for (int i = 0; i < players.Count; i++)
            {
                if (player[i].stats.kills >= temp)
                {
                    temp = player[i].stats.kills;
                    guy = players[i];
                }
            }

            return guy;
        }
(Original credits to creators of rotu mod, i have rewritten this function to c#)
You can create variables like
Code:
serverclient top1
serverclient top2
serverclient top3

Then make it
Code:
top1 = getMostTop();
top2 = getMostTop();
top3 = getMostTop();

And add this line to 'getMostTop'
if(player[i].stats.kills >= temp && players[i] != top1 && players[i] != top3 && players[i] != top4 )
{
guy = etc....
}

Then print their names.
Code:
Use topX.Name

It was working perfectly in my killme zombiemod.
and that now with your kiLL ME mod?: :


: :
ty i'l give it ago Wink

oh well i'm lost already sigh*