Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public EventRoundEnd()
- {
- static iFrags;
- static iMaximumPacks;
- static iMaximumKills;
- static iPacksLeader;
- static iKillsLeader;
- iMaximumPacks = 0;
- iMaximumKills = 0;
- iPacksLeader = 0;
- iKillsLeader = 0;
- g_iVariable = 1;
- while (g_iMaxClients + 1 > g_iVariable)
- {
- if (g_bConnected[g_iVariable])
- {
- iFrags = get_user_frags(g_iVariable);
- if (iFrags > iMaximumKills)
- {
- iMaximumKills = iFrags;
- iKillsLeader = g_iVariable;
- g_iVariable += 1;
- }
- g_iVariable += 1;
- }
- g_iVariable += 1;
- }
- g_iVariable = 1;
- while (g_iMaxClients + 1 > g_iVariable)
- {
- if (g_bConnected[g_iVariable] && g_iPacks[g_iVariable] > iMaximumPacks)
- {
- iMaximumPacks = g_iPacks [g_iVariable];
- iPacksLeader = g_iVariable;
- g_iVariable += 1;
- }
- g_iVariable += 1;
- }
- if (g_bConnected[iKillsLeader])
- {
- static a[15];
- AddCommas(iMaximumKills, a, 14);
- if (g_iKillsThisRound[iKillsLeader])
- {
- if (iMaximumKills == 1)
- {
- client_print_color(0, print_team_grey, "^3%s^1 is^4 Leader^1 with^4 %s^1 frag! [^4 %d^1 this round ]", g_cName[iKillsLeader], a, g_iKillsThisRound[iKillsLeader]);
- }
- }
- else
- {
- if (iMaximumKills == 1)
- {
- client_print_color(0, print_team_grey, "^3%s^1 is^4 Leader^1 with^4 %s^1 frag!", g_cName[iKillsLeader], a);
- }
- }
- }
- if (g_bConnected[iPacksLeader])
- {
- static a[15];
- AddCommas(iMaximumPacks, a, 14);
- client_print_color(0, print_team_grey, "^3%s^1 is^4 Leader^1 with^4 %s^1 packs!", g_cName[iPacksLeader], a);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement