Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias checkTeams {
- inc %teamBalanceTimerCount
- var %currentOffsetTemp = %currentGdi - %currentNod
- %currentOffsetTemp = $abs(%currentOffsetTemp)
- set %currentOffset %currentOffsetTemp
- if (%currentOffset < %offsetThreshHold) {
- set %teamBalanceTimerStarted 0
- timerAutoTeam off
- }
- var %tempLimit = %teamBalanceTimeLimit * 60
- if (%teamBalanceTimerCount > %tempLimit) && (%currentOffset >= %offsetThreshHold) {
- msg #vlat !teams
- set %teamBalanceTimerStarted 0
- timerAutoTeam off
- }
- if (%teamBalanceTimerCount > 10) && (%currentOffset < %offsetThreshHold) {
- set %teamBalanceTimerStarted 0
- timerAutoTeam off
- }
- }
- on *:INPUT:#vlat:{
- if (GDI: isin $1-) && (NOD: isin $1-) {
- set %currentGdi $2
- set %currentNod $4
- }
- if (left the game on team GDI isin $1-) {
- dec %currentGdi
- }
- if (left the game on team NOD isin $1-) {
- dec %currentNod
- }
- if (joined the game on team Nod isin $1-) {
- inc %currentNod
- }
- if (joined the game on team GDI isin $1-) {
- inc %currentGdi
- }
- var %currentOffsetTemp = %currentGdi - %currentNod
- %currentOffsetTemp = $abs(%currentOffsetTemp)
- set %currentOffset %currentOffsetTemp
- if (%currentOffset >= %offsetThreshHold) && (%teamBalanceTimerStarted == 0) {
- set %teamBalanceTimerCount 0
- set %teamBalanceTimerStarted 1
- timerAutoTeam 0 1 checkTeams
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement