02-21-2013, 13:42
02-21-2013, 14:12
Wait i'll find function and post there
Edit:
(Original credits to creators of rotu mod, i have rewritten this function to c#)
You can create variables like
Then make it
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.
It was working perfectly in my killme zombiemod.
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;
}
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, 15:00
(02-21-2013, 14:12)SailorMoon Wrote: [ -> ]Wait i'll find function and post thereand that now with your kiLL ME mod?: :
Edit:
(Original credits to creators of rotu mod, i have rewritten this function to c#)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;
}
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, 16:46
ty i'l give it ago
oh well i'm lost already sigh*
oh well i'm lost already sigh*