24.10.2011, 12:29
hello all
i need help pleas if some one can explain me how can i check who's the player who has the highest stats !
i explainer ! i've creating a killing medal system (double kill triple kill ect)
The killer (player) has +1 every time he kills an other player
what i want is to get the player's name of the guy who has the highest gPlayerKills number (and i will put that on a textdraw
) hop that u understood me !
thnks for reading and trying to help me
i need help pleas if some one can explain me how can i check who's the player who has the highest stats !
i explainer ! i've creating a killing medal system (double kill triple kill ect)
The killer (player) has +1 every time he kills an other player
Код:
new gPlayerKills[ MAX_PLAYERS ];
public OnPlayerDeath( playerid, killerid, reason )
{
new string1[ 200 ], name[30];
GetPlayerName( killerid, name, 24 );
gPlayerKills[ killerid ]++;
gPlayerKills[ playerid ] = 0;
}
) hop that u understood me !thnks for reading and trying to help me


