Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1.  
  2. alias checkTeams {
  3.  
  4. inc %teamBalanceTimerCount
  5. var %currentOffsetTemp = %currentGdi - %currentNod
  6. %currentOffsetTemp = $abs(%currentOffsetTemp)
  7.  
  8. set %currentOffset %currentOffsetTemp
  9.  
  10. if (%currentOffset < %offsetThreshHold) {
  11. set %teamBalanceTimerStarted 0
  12. timerAutoTeam off
  13.  
  14.  
  15. }
  16.  
  17. var %tempLimit = %teamBalanceTimeLimit * 60
  18. if (%teamBalanceTimerCount > %tempLimit) && (%currentOffset >= %offsetThreshHold) {
  19.  
  20. msg #vlat !teams
  21. set %teamBalanceTimerStarted 0
  22. timerAutoTeam off
  23.  
  24.  
  25. }
  26.  
  27. if (%teamBalanceTimerCount > 10) && (%currentOffset < %offsetThreshHold) {
  28. set %teamBalanceTimerStarted 0
  29. timerAutoTeam off
  30.  
  31. }
  32.  
  33.  
  34. }
  35.  
  36.  
  37. on *:INPUT:#vlat:{
  38.  
  39. if (GDI: isin $1-) && (NOD: isin $1-) {
  40.  
  41. set %currentGdi $2
  42. set %currentNod $4
  43.  
  44. }
  45.  
  46.  
  47. if (left the game on team GDI isin $1-) {
  48. dec %currentGdi
  49. }
  50.  
  51. if (left the game on team NOD isin $1-) {
  52. dec %currentNod
  53. }
  54.  
  55. if (joined the game on team Nod isin $1-) {
  56. inc %currentNod
  57. }
  58.  
  59. if (joined the game on team GDI isin $1-) {
  60. inc %currentGdi
  61. }
  62.  
  63.  
  64. var %currentOffsetTemp = %currentGdi - %currentNod
  65.  
  66. %currentOffsetTemp = $abs(%currentOffsetTemp)
  67.  
  68. set %currentOffset %currentOffsetTemp
  69.  
  70. if (%currentOffset >= %offsetThreshHold) && (%teamBalanceTimerStarted == 0) {
  71.  
  72.  
  73. set %teamBalanceTimerCount 0
  74. set %teamBalanceTimerStarted 1
  75. timerAutoTeam 0 1 checkTeams
  76. }
  77.  
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement