• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Votekick System v2.1b [eleljrk]

  • Like
Reactions: Barade and Anachron
Version 1.0, 1.1, 1.2, 1.3 and 1.4 is completely unsupported and the version log has been reset. This is a new Votekick System for you!

This is a simple, but advance Votekick System created in GUI.
This is highly configureable, stable and flexible.

This is a very simple and fast kick system. You can start a vote by typing: -kick < Player Id / Name / Custom String >. You can vote by typing -yes / -no. There are alos plugins allowing you to do even more with the system then just kick players. Read the feature list for a more detailed picture of the system.

Commands:
-kick < Player Id / Name / Custom string >
-yes / -no
-abort / -cancel / -stop

Plugin Commands:
-zoom < Value >
-name < New Name >

Features:

  • Simple and quick configurations
    • Force kick
    • Abort of kick session
    • Block kick of certain players
    • Display of messages
    • Duration of kick session
    • Duration messages will be displayed
    • Display countdown or not
    • Display multiboard or not (Secret voting)
    • Display who votes and for what (Anonymous voting)
    • How many more "yes" votes is required then "no" votes
    • Remove kicked player´s units or not
    • Every player can have unlimited amount of votes
    • Every player can aditional get kicked by 10 configureable custom strings
  • You can kick players by color / custom stings, name and id
  • Plugins which allows this system to be an entire command system
  • No leaks, No lag
Triggers


  • VKSetup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- PASTE PLUGINS ON ME! --------
      • -------- Set False to turn off the Votekick System --------
      • Set VKCheck = True
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Votekick Session Time --------
      • -------- The duration allowing players to kick the "victim" --------
      • -------- Standard: 45 --------
      • Set VKSetup[0] = 45
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Votekick Text Time --------
      • -------- The time the text should display on the screen --------
      • -------- Standard: 15 --------
      • Set VKSetup[1] = 15
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Votekick All / Allies / Enemies --------
      • -------- Allows you kick players depending on force --------
      • -------- 0 : You can kick everyone --------
      • -------- 1 : You can kick allies only --------
      • -------- 2 or greater : You can kick enemies only --------
      • -------- Standard: 0 --------
      • Set VKSetup[2] = 0
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Show Timer Window --------
      • -------- Show the countdown of the "Votekick Session Time" --------
      • -------- 0 : Don't show Timer Window --------
      • -------- 1 or greater : Show Timer Window --------
      • -------- Standard: 1 --------
      • Set VKSetup[3] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Show Messages --------
      • -------- This can enable / disable all text displayed by the system --------
      • -------- 0 : Disable Messages --------
      • -------- 1 or greater : Enable Messages --------
      • -------- Standard: 1 --------
      • Set VKSetup[4] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Kick Requirements --------
      • -------- "Yes Votes" has to be higher then or equal to "No Votes" + "Kick Requirements" to preform the kick --------
      • -------- Example 1 : Kick Requirements = 1 | Yes = 2 | No = 1 | Kick = YES --------
      • -------- Example 2 : Kick Requirements = 2 | Yes = 2 | No = 1 | Kick = NO --------
      • -------- Example 3 : Kick Requirements = 1 | Yes = 2 | No = 2 | Kick = NO --------
      • -------- Example 4 : Kick Requirements = 5 | Yes = 4 | No = 0 | Kick = NO --------
      • -------- Standard: 1 --------
      • Set VKSetup[5] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Secret Voting / Multiboard --------
      • -------- 0 : Multiboard will not be displayed; Amount of votes will not be revealed before the end of the votekick session --------
      • -------- 1 or greater : Multiboard will be displayed; Amount of votes will be revealed trough the votekick session --------
      • -------- Standard: 1 --------
      • Set VKSetup[6] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Force Kick --------
      • -------- The Player #Number that can force / instant kick other players, without checking the conditions --------
      • -------- Example 1 : Force Kick = 1 | Player 1 can preform Force Kick --------
      • -------- Example 2 : Force Kick = 11 | Player 11 can preform Force Kick --------
      • -------- Example 3 : Force Kick = 0 | Nobody can preform Force Kick --------
      • -------- Standard: 0 --------
      • Set VKSetup[7] = 0
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Abort / Stop / Cancel --------
      • -------- The Player #Number that can use the -stop / -abort / -cancel commands to abort the current votekick session --------
      • -------- Example 1 : Abort / Stop / Cancel = 1 | Player 1 can preform votekick Aborts --------
      • -------- Example 2 : Abort / Stop / Cancel = 11 | Player 11 can preform votekick Aborts --------
      • -------- Example 3 : Abort / Stop / Cancel = 0 | Nobody can preform votekick Aborts --------
      • -------- Standard: 1 (Player #1) --------
      • Set VKSetup[8] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Anonymous Voting --------
      • -------- 0 : The votes will only be revealed to players that can read your text message --------
      • -------- 1 or greater : The votes will be revealed to everyone --------
      • -------- Standard: 1 --------
      • Set VKSetup[9] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Playing Players --------
      • -------- The number of players starting from 1 to chosen number that can be kicked --------
      • -------- Example 1 : You got all 12 slots in use | Player 6 & 12 is computers | You don't want to kick those computers | Set Playing Players = 11 and Unkickable Players = 6 --------
      • -------- Max Limit: 12 --------
      • -------- Standard: 8 (8 Players) --------
      • Set VKSetup[10] = 8
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Unkickable Players --------
      • -------- Allow you to make player # 1-9 unkickable --------
      • -------- Example 1 : You got all 12 slots in use | Player 6 & 12 is computers | You don't want to kick those computers | Set Playing Players = 11 and Unkickable Players = 6 --------
      • -------- Max Length: 9 --------
      • -------- Standard: 1458 (Player #1, Player #4, Player #5 and Player #8) --------
      • Set VKSetup[11] = 1458
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Kicked Players Units --------
      • -------- 0 : Keep all units owned by kicked players --------
      • -------- 1 or greater : Remove all units owned by kicked players --------
      • -------- Standard: 1 --------
      • Set VKSetup[12] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Other Commands --------
      • -------- This displays a message that the entered command was invaild --------
      • -------- 0 : Does not display the error message --------
      • -------- 1 or greater : Display the error message --------
      • -------- NOTE: If you have other commands starting on "-" set this to "0" --------
      • -------- Standard: 1 --------
      • Set VKSetup[13] = 1
      • -------- - - - --------
      • -------- - - - - - - - - - - - - - - - - - - --------
      • -------- - - - --------
      • -------- Player Votes --------
      • -------- The amount of votes every player can use during each votekick session --------
      • -------- Standard: 1 --------
      • Set VKSetup[14] = 1
      • -------- Colors --------
      • -------- Every player got 10 custom strings you can use to kick them --------
      • -------- From 10-19 is for player 1 (Red) | From 20-29 is for player 2 (Blue)... --------
      • -------- All strings are allowed for use, not just colors --------
      • Set VKColors[10] = red
      • Set VKColors[20] = blue
      • Set VKColors[21] = aqua
      • Set VKColors[30] = teal
      • Set VKColors[40] = purple
      • Set VKColors[41] = violet
      • Set VKColors[50] = yellow
      • Set VKColors[60] = orange
      • Set VKColors[70] = green
      • Set VKColors[71] = lime
      • Set VKColors[80] = pink
      • Set VKColors[90] = gray
      • Set VKColors[91] = grey
      • Set VKColors[100] = light blue
      • Set VKColors[101] = lightblue
      • Set VKColors[102] = lb
      • Set VKColors[110] = dark green
      • Set VKColors[111] = darkgreen
      • Set VKColors[112] = dg
      • Set VKColors[120] = brown



  • VKCommands
    • Events
      • Player - Player 1 (Red) types a chat message containing - as A substring
      • Player - Player 2 (Blue) types a chat message containing - as A substring
      • Player - Player 3 (Teal) types a chat message containing - as A substring
      • Player - Player 4 (Purple) types a chat message containing - as A substring
      • Player - Player 5 (Yellow) types a chat message containing - as A substring
      • Player - Player 6 (Orange) types a chat message containing - as A substring
      • Player - Player 7 (Green) types a chat message containing - as A substring
      • Player - Player 8 (Pink) types a chat message containing - as A substring
      • Player - Player 9 (Gray) types a chat message containing - as A substring
      • Player - Player 10 (Light Blue) types a chat message containing - as A substring
      • Player - Player 11 (Dark Green) types a chat message containing - as A substring
      • Player - Player 12 (Brown) types a chat message containing - as A substring
    • Conditions
    • Actions
      • -------- PASTE PLUGINS ON ME! --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VKCheck Equal to True
          • (Substring((Entered chat string), 2, 6)) Equal to kick
        • Then - Actions
          • For each (Integer B) from ((Player number of (Triggering player)) x 10) to (((Player number of (Triggering player)) x 10) + 9), do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Or - Any (Conditions) are true
                    • Conditions
                      • (Substring((Entered chat string), 7, 9)) Equal to (String((Player number of (Triggering player))))
                      • (Substring((Entered chat string), 7, 22)) Equal to (Name of (Triggering player))
                      • (Substring((Entered chat string), 7, 1023)) Equal to VKColors[(Integer B)]
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • VKSetup[4] Greater than or equal to 1
                    • Then - Actions
                      • Set TempForce = (Player group((Triggering player)))
                      • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
                      • Custom script: call DestroyForce(udg_TempForce)
                    • Else - Actions
                  • Skip remaining actions
                • Else - Actions
                  • For each (Integer A) from 1 to VKSetup[10], do (Actions)
                    • Loop - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[7] Equal to (Player number of (Triggering player))
                        • Then - Actions
                          • For each (Integer B) from ((Integer A) x 10) to (((Integer A) x 10) + 9), do (Actions)
                            • Loop - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • ((Player((Integer A))) slot status) Equal to Is playing
                                  • Or - Any (Conditions) are true
                                    • Conditions
                                      • (Substring((Entered chat string), 7, 22)) Equal to (Name of (Player((Integer A))))
                                      • (Substring((Entered chat string), 7, 9)) Equal to (String((Integer A)))
                                      • (Substring((Entered chat string), 7, 1023)) Equal to VKColors[(Integer B)]
                                • Then - Actions
                                  • Game - Defeat (Player((Integer A))) with the message: You got kicked!
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • VKSetup[4] Greater than or equal to 1
                                    • Then - Actions
                                      • Set TempForce = (All players controlled by a User player)
                                      • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00The player|r + ((Name of (Player((Integer A)))) + |cffffff00has been kicked.|r))
                                      • Custom script: call DestroyForce(udg_TempForce)
                                    • Else - Actions
                                  • Skip remaining actions
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Integer A) Equal to VKSetup[10]
                                    • Then - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • VKSetup[4] Greater than or equal to 1
                                        • Then - Actions
                                          • Set TempForce = (Player group((Triggering player)))
                                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00Requested...
                                          • Custom script: call DestroyForce(udg_TempForce)
                                        • Else - Actions
                                      • Skip remaining actions
                                    • Else - Actions
                        • Else - Actions
                          • If (VKSetup[2] Equal to 0) then do (Set VKAble = True) else do (If (VKSetup[2] Equal to 1) then do (Set VKAble = ((Triggering player) is an ally of (Player((Integer A))))) else do (Set VKAble = ((Triggering player) is an enemy of (Player((Integer A))))))
                          • For each (Integer B) from ((Integer A) x 10) to (((Integer A) x 10) + 9), do (Actions)
                            • Loop - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • VKAble Equal to True
                                  • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 1, 1))))
                                  • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 2, 2))))
                                  • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 3, 3))))
                                  • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 4, 4))))
                                  • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 5, 5))))
                                  • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 6, 6))))
                                  • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 7, 7))))
                                  • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 8, 8))))
                                  • (Integer A) Not equal to (Integer((Substring((String(VKSetup[11])), 9, 9))))
                                  • ((Player((Integer A))) slot status) Equal to Is playing
                                  • Or - Any (Conditions) are true
                                    • Conditions
                                      • (Substring((Entered chat string), 7, 9)) Equal to (String((Integer A)))
                                      • (Substring((Entered chat string), 7, 22)) Equal to (Name of (Player((Integer A))))
                                      • (Substring((Entered chat string), 7, 1023)) Equal to VKColors[(Integer B)]
                                • Then - Actions
                                  • Set VKCheck = False
                                  • Set VKPlayers[0] = (Triggering player)
                                  • Set VKPlayers[1] = (Player((Integer A)))
                                  • Set VKVotes[0] = VKSetup[14]
                                  • Set VKVotes[1] = 0
                                  • Set VKVoted[(Player number of (Triggering player))] = VKSetup[14]
                                  • Set VKVoted[(Integer A)] = (VKSetup[14] + 1)
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • VKSetup[6] Greater than or equal to 1
                                    • Then - Actions
                                      • Multiboard - Create a multiboard with 1 columns and 2 rows, titled (Kick player: + (Name of VKPlayers[1]))
                                      • Set VKMultiboard = (Last created multiboard)
                                      • -------- Row 1 --------
                                      • Multiboard - Set the display style for VKMultiboard item in column 1, row 1 to Show text and Hide icons
                                      • Multiboard - Set the text for VKMultiboard item in column 1, row 1 to |cff00ff00Yes|r: 1
                                      • -------- Row 2 --------
                                      • Multiboard - Set the display style for VKMultiboard item in column 1, row 2 to Show text and Hide icons
                                      • Multiboard - Set the text for VKMultiboard item in column 1, row 2 to |cffff0000No|r: 0
                                    • Else - Actions
                                  • Countdown Timer - Start VKTime as a One-shot timer that will expire in (Real(VKSetup[0])) seconds
                                  • Set VKTime = (Last started timer)
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • VKSetup[3] Greater than or equal to 1
                                    • Then - Actions
                                      • Countdown Timer - Create a timer window for VKTime with title (Kick + ((Name of VKPlayers[1]) + :))
                                      • Set VKTimeWindow = (Last created timer window)
                                    • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • VKSetup[4] Greater than or equal to 1
                                    • Then - Actions
                                      • Set TempForce = (All players controlled by a User player)
                                      • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00Player|r + ((Name of (Triggering player)) + ( |cffffff00has started a kick session on player|r + ((Name of VKPlayers[1]) + .))))
                                      • Custom script: call DestroyForce(udg_TempForce)
                                    • Else - Actions
                                  • Skip remaining actions
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Integer A) Equal to VKSetup[10]
                                    • Then - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • VKSetup[4] Greater than or equal to 1
                                        • Then - Actions
                                          • Set TempForce = (Player group((Triggering player)))
                                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00Requested...
                                          • Custom script: call DestroyForce(udg_TempForce)
                                        • Else - Actions
                                      • Skip remaining actions
                                    • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to (Player(VKSetup[8]))
              • VKCheck Equal to False
              • Or - Any (Conditions) are true
                • Conditions
                  • (Substring((Entered chat string), 2, 5)) Equal to stop
                  • (Substring((Entered chat string), 2, 6)) Equal to abort
                  • (Substring((Entered chat string), 2, 7)) Equal to cancel
            • Then - Actions
              • Countdown Timer - Pause VKTime
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[3] Greater than or equal to 1
                • Then - Actions
                  • Countdown Timer - Destroy VKTimeWindow
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[6] Greater than or equal to 1
                • Then - Actions
                  • Multiboard - Destroy VKMultiboard
                • Else - Actions
              • Set VKCheck = True
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[4] Greater than or equal to 1
                • Then - Actions
                  • Set TempForce = (All players controlled by a User player)
                  • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00The kick ...
                  • Custom script: call DestroyForce(udg_TempForce)
                • Else - Actions
              • Skip remaining actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Or - Any (Conditions) are true
                    • Conditions
                      • (Substring((Entered chat string), 2, 5)) Equal to stop
                      • (Substring((Entered chat string), 2, 6)) Equal to abort
                      • (Substring((Entered chat string), 2, 7)) Equal to cancel
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Triggering player) Equal to (Player(VKSetup[8]))
                    • Then - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[4] Greater than or equal to 1
                        • Then - Actions
                          • Set TempForce = (Player group((Triggering player)))
                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00No kick s...
                          • Custom script: call DestroyForce(udg_TempForce)
                        • Else - Actions
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[4] Greater than or equal to 1
                        • Then - Actions
                          • Set TempForce = (Player group((Triggering player)))
                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
                          • Custom script: call DestroyForce(udg_TempForce)
                        • Else - Actions
                  • Skip remaining actions
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • VKCheck Equal to False
                      • (Substring((Entered chat string), 2, 4)) Equal to yes
                      • VKVoted[(Player number of (Triggering player))] Less than VKSetup[14]
                    • Then - Actions
                      • Set VKVotes[0] = (VKVotes[0] + 1)
                      • Set VKVoted[(Player number of (Triggering player))] = (VKVoted[(Player number of (Triggering player))] + 1)
                      • If (VKSetup[6] Greater than or equal to 1) then do (Multiboard - Create a multiboard with 1 columns and 1 rows, titled (|cff00ff00Yes|r: + (String(VKVotes[0])))) else do (Do nothing)
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKSetup[4] Greater than or equal to 1
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • VKSetup[9] Greater than or equal to 1
                            • Then - Actions
                              • Set TempForce = (All players controlled by a User player)
                              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00Player|r + ((Name of (Triggering player)) + |cffffff00has voted:|r |cff00ff00Yes|r))
                              • Custom script: call DestroyForce(udg_TempForce)
                            • Else - Actions
                              • Set TempForce = (Player group((Triggering player)))
                              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00Your vote...
                              • Custom script: call DestroyForce(udg_TempForce)
                        • Else - Actions
                      • Skip remaining actions
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • VKCheck Equal to False
                          • (Substring((Entered chat string), 2, 3)) Equal to no
                          • VKVoted[(Player number of (Triggering player))] Less than VKSetup[14]
                        • Then - Actions
                          • Set VKVotes[1] = (VKVotes[1] + 1)
                          • Set VKVoted[(Player number of (Triggering player))] = (VKVoted[(Player number of (Triggering player))] + 1)
                          • If (VKSetup[6] Greater than or equal to 1) then do (Multiboard - Create a multiboard with 1 columns and 2 rows, titled (|cffff0000No|r: + (String(VKVotes[1])))) else do (Do nothing)
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • VKSetup[4] Greater than or equal to 1
                            • Then - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • VKSetup[9] Greater than or equal to 1
                                • Then - Actions
                                  • Set TempForce = (All players controlled by a User player)
                                  • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00Player|r + ((Name of (Triggering player)) + |cffffff00has voted:|r |cffff0000No|r))
                                  • Custom script: call DestroyForce(udg_TempForce)
                                • Else - Actions
                                  • Set TempForce = (Player group((Triggering player)))
                                  • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00Your vote...
                                  • Custom script: call DestroyForce(udg_TempForce)
                            • Else - Actions
                          • Skip remaining actions
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Or - Any (Conditions) are true
                                • Conditions
                                  • (Substring((Entered chat string), 2, 4)) Equal to yes
                                  • (Substring((Entered chat string), 2, 3)) Equal to no
                            • Then - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • VKCheck Equal to False
                                • Then - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • VKVoted[(Player number of (Triggering player))] Equal to VKSetup[14]
                                    • Then - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • VKSetup[4] Greater than or equal to 1
                                        • Then - Actions
                                          • Set TempForce = (Player group((Triggering player)))
                                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You've us...
                                          • Custom script: call DestroyForce(udg_TempForce)
                                        • Else - Actions
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • VKSetup[4] Greater than or equal to 1
                                        • Then - Actions
                                          • Set TempForce = (Player group((Triggering player)))
                                          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
                                          • Custom script: call DestroyForce(udg_TempForce)
                                        • Else - Actions
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • VKSetup[4] Greater than or equal to 1
                                    • Then - Actions
                                      • Set TempForce = (Player group((Triggering player)))
                                      • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
                                      • Custom script: call DestroyForce(udg_TempForce)
                                    • Else - Actions
                              • Skip remaining actions
                            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VKSetup[4] Greater than or equal to 1
          • (Substring((Entered chat string), 2, 6)) Equal to kick
          • VKCheck Equal to False
        • Then - Actions
          • Set TempForce = (Player group((Triggering player)))
          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You can't...
          • Custom script: call DestroyForce(udg_TempForce)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VKSetup[4] Greater than or equal to 1
              • VKSetup[13] Greater than or equal to 1
            • Then - Actions
              • Set TempForce = (Player group((Triggering player)))
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00Invalid c...
              • Custom script: call DestroyForce(udg_TempForce)
            • Else - Actions



  • VKEndKick
    • Events
      • Time - VKTime expires
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Set VKVoted[(Integer A)] = 0)
      • If (VKSetup[3] Greater than or equal to 1) then do (Countdown Timer - Destroy VKTimeWindow) else do (Do nothing)
      • If (VKSetup[6] Greater than or equal to 1) then do (Multiboard - Destroy VKMultiboard) else do (Do nothing)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VKVotes[0] Greater than or equal to (VKVotes[1] + VKSetup[5])
        • Then - Actions
          • Game - Defeat VKPlayers[1] with the message: You got kicked!
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VKSetup[12] Greater than or equal to 1
            • Then - Actions
              • Set TempGroup = (Units owned by VKPlayers[1])
              • Unit Group - Pick every unit in TempGroup and do (Unit - Remove (Picked unit) from the game)
              • Custom script: call DestroyGroup(udg_TempGroup)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VKSetup[4] Greater than or equal to 1
            • Then - Actions
              • Set TempForce = (All players controlled by a User player)
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00The player|r + ((Name of VKPlayers[1]) + |cffffff00has been kicked.|r))
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cff00ff00Yes|r: + (((String(VKVotes[0])) + | ) + (|cffff0000No|r: + ((String(VKVotes[1])) + ( + + (String(VKSetup[5])))))))
              • Custom script: call DestroyForce(udg_TempForce)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VKSetup[4] Greater than or equal to 1
            • Then - Actions
              • Set TempForce = (All players controlled by a User player)
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00The player|r + ((Name of VKPlayers[1]) + |cffffff00was not kicked.|r))
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cff00ff00Yes|r: + (((String(VKVotes[0])) + | ) + (|cffff0000No|r: + ((String(VKVotes[1])) + ( + + (String(VKSetup[5])))))))
              • Custom script: call DestroyForce(udg_TempForce)
            • Else - Actions
      • Set VKCheck = True



Note that the plugins can be found bellow without comments and configurations. One by one.
  • VKPlugins
    • Events
    • Conditions
    • Actions
      • -------- PLUGINS CONFIGURATION --------
      • -------- Copy to "VKSetup" -> "PASTE PLUGINS ON ME!" --------
      • -------- Minimum Camera Offset --------
      • -------- This is the minimum Camera Offset a player can set trough the (-zoom) command --------
      • -------- Standard: 750 --------
      • Set VKSetup[15] = 750
      • -------- Maximum Camera Offset --------
      • -------- This is the maximum Camera Offset a player can set trough the (-zoom) command --------
      • -------- Standard: 2500 --------
      • Set VKSetup[16] = 2500
      • -------- PLUGINS --------
      • -------- Copy to "VKCommands" -> "PASTE PLUGINS ON ME!" --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring((Entered chat string), 2, 6)) Equal to name
        • Then - Actions
          • Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, 22))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VKSetup[4] Greater than or equal to 1
            • Then - Actions
              • Set TempForce = (Player group((Triggering player)))
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00You have changed in-game name to:|r + (Name of (Triggering player)))
              • Custom script: call DestroyForce(udg_TempForce)
            • Else - Actions
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring((Entered chat string), 2, 6)) Equal to zoom
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Integer((Substring((Entered chat string), 7, 11)))) Greater than or equal to VKSetup[15]
              • (Integer((Substring((Entered chat string), 7, 11)))) Less than or equal to VKSetup[16]
            • Then - Actions
              • Camera - Set (Triggering player)'s camera Height Offset to (Real((Substring((Entered chat string), 7, 11)))) over 1.00 seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[4] Greater than or equal to 1
                • Then - Actions
                  • Set TempForce = (Player group((Triggering player)))
                  • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00You have set the camera offset to:|r + (Substring((Entered chat string), 7, 11)))
                  • Custom script: call DestroyForce(udg_TempForce)
                • Else - Actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Integer((Substring((Entered chat string), 7, 11)))) Less than or equal to 750
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • VKSetup[4] Greater than or equal to 1
                    • Then - Actions
                      • Set TempForce = (Player group((Triggering player)))
                      • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You're su...
                      • Custom script: call DestroyForce(udg_TempForce)
                    • Else - Actions
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • VKSetup[4] Greater than or equal to 1
                    • Then - Actions
                      • Set TempForce = (Player group((Triggering player)))
                      • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You're su...
                      • Custom script: call DestroyForce(udg_TempForce)
                    • Else - Actions
          • Skip remaining actions
        • Else - Actions


Plugins


  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Substring((Entered chat string), 2, 6)) Equal to name
    • Then - Actions
      • Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, 22))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VKSetup[4] Greater than or equal to 1
        • Then - Actions
          • Set TempForce = (Player group((Triggering player)))
          • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00You have changed in-game name to:|r + (Name of (Triggering player)))
          • Custom script: call DestroyForce(udg_TempForce)
        • Else - Actions
      • Skip remaining actions
    • Else - Actions



  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Substring((Entered chat string), 2, 6)) Equal to zoom
    • Then - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Integer((Substring((Entered chat string), 7, 11)))) Less than or equal to 2500
          • (Integer((Substring((Entered chat string), 7, 11)))) Greater than or equal to 750
        • Then - Actions
          • Camera - Set (Triggering player)'s camera Height Offset to (Real((Substring((Entered chat string), 7, 11)))) over 1.00 seconds
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VKSetup[4] Greater than or equal to 1
            • Then - Actions
              • Set TempForce = (Player group((Triggering player)))
              • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: (|cffffff00You have set the camera offset to:|r + (Substring((Entered chat string), 7, 11)))
              • Custom script: call DestroyForce(udg_TempForce)
            • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Integer((Substring((Entered chat string), 7, 11)))) Less than or equal to 750
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[4] Greater than or equal to 1
                • Then - Actions
                  • Set TempForce = (Player group((Triggering player)))
                  • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You're su...
                  • Custom script: call DestroyForce(udg_TempForce)
                • Else - Actions
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VKSetup[4] Greater than or equal to 1
                • Then - Actions
                  • Set TempForce = (Player group((Triggering player)))
                  • Game - Display to TempForce for (Real(VKSetup[1])) seconds the text: |cffffff00You're su...
                  • Custom script: call DestroyForce(udg_TempForce)
                • Else - Actions
      • Skip remaining actions
    • Else - Actions


How to implent plugins:
Copy the plugins from the "VKPlugins" trigger and paste them on the "PASTE PLUGINS ON ME!" comment in VKCommands. The plugins can be configured after you've copied the configurations from "VKPlugins" to the "PASTE PLUGINS ON ME!" comment in VKSetup.

Version 2.0
Created by: eleljrk

- First release

Version 2.0b
Created by: eleljrk

- Added the plugins feature

Version 2.0c
Created by: eleljrk

- Fixed Description
- Fixed some messages (In-Game)

Version 2.1
Created by: eleljrk

- Updated Description
- Fixed some messages (In-Game)
- Added string support (You can now kick by color / custom strings)
- Fixed some minor bugs

Version 2.1b
Created by: eleljrk

- Added triggers to the description
- Fixed a message
- Version of the system is now displayed in the "READ THIS!" comment


Please add me to the credits if used in your map.
Please give Feedback, Ideas and Report Bugs..
Thanks you

Keywords:
kick, easy, simple, votekick, vote, yes, no, system, zoom, name, camera, fast, config
Contents

Votekick System (Map)

Reviews
14:15, 8th Oct 2009 The_Reborn_Devil: The triggering looks very good. Status: Approved Rating: Recommended

Moderator

M

Moderator

14:15, 8th Oct 2009
The_Reborn_Devil:

The triggering looks very good.


Status: Approved
Rating: Recommended
 
Level 4
Joined
Jul 31, 2009
Messages
89
Pretty useful, I don't think there is a nice way to fix the 'changed your mind?' thing in a nice way. Maybe pageing but that is almost more awful. gj.
 
Level 9
Joined
Aug 27, 2009
Messages
473
You guys gave me a idea.. I could try to add Escape button as a quit.. That would be smart.. Thanks for the idea..

i dont like how it removes all the kicked persons units, other than that good

Thats so simple to remove, that you almost made me laugth..

Its 1 Action to remove, and then its fixed..!

EDIT:
You guys gave me a idea.. I could try to add Escape button as a quit.. That would be smart.. Thanks for the idea../

Seems like it cant be done.. :/

EDIT 2:
UPDATE:
- Fixed description: How to keep units after kick, can be found: Comment (Time is out:)
- Fixed so you cant kick yourself.
- Fixed "Changed your mind".

Now it should work better!
 
Last edited:
Level 14
Joined
Jan 15, 2007
Messages
349
Well I just looked a short time at the code but the following things have to be improved...

Stuff that have to be changed:
- you should use a loop, there's no need to have so many if-then-else functions
- remove those "DoNothing" functions, they are just useless
- the dialog is just to long, the solution how to bypass this is also pretty simple...

PM or VM me when you fixed the above.
 
Level 9
Joined
Aug 27, 2009
Messages
473
Well I just looked a short time at the code but the following things have to be improved...

Stuff that have to be changed:
- you should use a loop, there's no need to have so many if-then-else functions
- remove those "DoNothing" functions, they are just useless
- the dialog is just to long, the solution how to bypass this is also pretty simple...

PM or VM me when you fixed the above.

Yah, this is an old GUI. So i will fix it now.. :)
 
Level 4
Joined
Jul 24, 2010
Messages
85
Will be great if post all trigger here. Anyway, great system 5/5. Thank

I don't need plug-in trigger on this page.
 
Top