16.03.2013, 21:20
Can someone help me build a top 5 killers system that could be shown under a command. Or if someone could link me to a thread/filterscript that contains the help I am looking for?!? ThankYou.
new topkills[5], kills[MAX_PLAYERS], name[MAX_PLAYER_NAME];
OnPlayerDeath(playerid, killerid, reason)
{
kills[killerid]++;
for(new i = 0; i < 5; i++)
{
if(kills[killerid] > topkills[i])
{
topkills[i] = kills[killerid];
GetPlayerName(killerid, name, sizeof(name));
}
}
return 1;
}