29.12.2010, 22:53
online?
pawn Код:
new topid,secondid,topcash,secondcash;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(GetPlayerMoney(i) > topcash)
{
topcash = GetPlayerMoney(i);
topid = i;
}
if(GetPlayerMoney(i) > secondcash && i != topid)
{
secondcash = GetPlayerMoney(i);
secondid = i;
}
}