top 5 killers!!!
#6

pawn Код:
new best,score;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && GetPlayerScore(i) >= score)
{
best=i;
score=GetPlayerScore(i);
}
}
printf("fist best is %d - %d",best,score);

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)&&GetPlayerScore(i)>=score&&best!=i)
{
best=i;
score=GetPlayerScore(i);
}
}
printf("second is %d - %d",best,score);
I not tested
Reply


Messages In This Thread
top 5 killers!!! - by billiout - 24.06.2010, 16:41
Re: top 5 killers!!! - by ViruZZzZ_ChiLLL - 24.06.2010, 17:10
Re: top 5 killers!!! - by Flashy - 24.06.2010, 17:48
Re: top 5 killers!!! - by billiout - 24.06.2010, 18:01
Re: top 5 killers!!! - by NiiRV4N4 - 24.06.2010, 19:13
Re: top 5 killers!!! - by ReVo_ - 24.06.2010, 19:17
Re: top 5 killers!!! - by [HiC]TheKiller - 24.06.2010, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)