Advertisement
Mr-Co0L

Untitled

Apr 15th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. public EventRoundEnd()
  2. {
  3. static iFrags;
  4. static iMaximumPacks;
  5. static iMaximumKills;
  6. static iPacksLeader;
  7. static iKillsLeader;
  8. iMaximumPacks = 0;
  9. iMaximumKills = 0;
  10. iPacksLeader = 0;
  11. iKillsLeader = 0;
  12. g_iVariable = 1;
  13. while (g_iMaxClients + 1 > g_iVariable)
  14. {
  15. if (g_bConnected[g_iVariable])
  16. {
  17. iFrags = get_user_frags(g_iVariable);
  18. if (iFrags > iMaximumKills)
  19. {
  20. iMaximumKills = iFrags;
  21. iKillsLeader = g_iVariable;
  22. g_iVariable += 1;
  23. }
  24. g_iVariable += 1;
  25. }
  26. g_iVariable += 1;
  27. }
  28. g_iVariable = 1;
  29. while (g_iMaxClients + 1 > g_iVariable)
  30. {
  31. if (g_bConnected[g_iVariable] && g_iPacks[g_iVariable] > iMaximumPacks)
  32. {
  33. iMaximumPacks = g_iPacks [g_iVariable];
  34. iPacksLeader = g_iVariable;
  35. g_iVariable += 1;
  36. }
  37. g_iVariable += 1;
  38. }
  39. if (g_bConnected[iKillsLeader])
  40. {
  41. static a[15];
  42. AddCommas(iMaximumKills, a, 14);
  43. if (g_iKillsThisRound[iKillsLeader])
  44. {
  45. if (iMaximumKills == 1)
  46. {
  47. 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]);
  48. }
  49. }
  50. else
  51. {
  52. if (iMaximumKills == 1)
  53. {
  54. client_print_color(0, print_team_grey, "^3%s^1 is^4 Leader^1 with^4 %s^1 frag!", g_cName[iKillsLeader], a);
  55. }
  56.  
  57. }
  58. }
  59. if (g_bConnected[iPacksLeader])
  60. {
  61. static a[15];
  62. AddCommas(iMaximumPacks, a, 14);
  63.  
  64. client_print_color(0, print_team_grey, "^3%s^1 is^4 Leader^1 with^4 %s^1 packs!", g_cName[iPacksLeader], a);
  65. }
  66. return 0;
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement