System Voting Kick System

Darg

Administrator
Reaction score
49
Kick Vote System

if you're sick of players ruining the game for you by doing very silly things, use this kick vote system to throw them out of the game.

the system works when a player types -kick 5, where 5 is the player number. If a player has had at least 50% of players vote against him, then that player will be kicked out of the game.

dargs kick system.w3x
 

Attachments

  • dargs kick system.w3x
    20.9 KB · Views: 1,248
M

marcotjuhhhh

Guest
its very nice, but you could simplyfi it very easy, use dialogs to simplyfi it: i will post my votekick with dialogs soon...
it will be the original version of mine, converted to text and added credits, you may use it as soon as i post it.
it will work like this:
someone types \votekick and selects a playername, every user online gets a message in dialog: kick (nominated)?
the player has to select yes or no, and the player who will be kicked cant vote, (you cant nominate the computer for votekick becuase computer dont cheat or lag) the game detects who leaves (without kick) and the name will be set to left, if kicked the name will be set to: KICKED, its just a simple system with a few triggers, probably 40 triggers, but with special options of world editor UNlimited i am able to remove triggers from the game if players are not playing, which reduces lag problems.Its very simple if you have a little creativity,
(and message to darg: you system is just great but it only needs some simplyfing)
 
B

butters132

Guest
Nice! Very usefull i'm going to use this one and give credit of course :D
 
M

marcotjuhhhh

Guest
my version :D

here is my version of votekick system, its a little easier to use, but its using world editor unlimited actions,
how to import in disired map:
download world editor unlimited
open votekick map
copy C on the folder name in triggers.
close map
copy V in the triggers window,
votekick implanted:
DARG i am not trying to defeat you with another votekick system, its just another version, made by myself.
 

Attachments

  • Votekick system.w3x
    91.5 KB · Views: 430
Reaction score
456
Darg won't answer to you.

Read the main Tutorials, Spells and Trigger Code forum rules, and follow them.

Direct Link to the submission rules.
 

hasslarn

New Member
Reaction score
20
Kick Vote System

if you're sick of players ruining the game for you by doing very silly things, use this kick vote system to throw them out of the game.

the system works when a player types -kick 5, where 5 is the player number. If a player has had at least 50% of players vote against him, then that player will be kicked out of the game.

dargs kick system.w3x

Finaly Thank i usualy play with anyoing people!
 

Chris B

New Member
Reaction score
7
Am I out of it today, or is this a bug?
In trigger Vote to Kick a Player, he determines if a person has already voted with this condition
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • PlayerHasVotedForPlayer[((Player number of (Triggering player)) x PlayerWhoMightBeKicked)] Equal to False
    • Then - Actions
      • -------- Check to see if the player has already made a vote against the other player. --------
      • Set NumVotes[PlayerWhoMightBeKicked] = (NumVotes[PlayerWhoMightBeKicked] + 1)


At first glance, I though, that's genius! Then, I cam to realize how it's not right. You see, if player 1 votes for player 2, then player 2 votes for player 1, they should be counted as the same thing if following the above syntax. What I would advise is, instead of multiplying (triggering player) x (PlayerWhoMightBeKicked), is adding (((triggering player)-1)x12) + (PlayerWhoMightBeKicked). EDIT: To those wondering why this algorithm will work, if say player 3 votes player 2 to be kicked, it goes (3-1)*12+2.
The *12 keeps it in it's player, allowing player one's zone to be 1-12, player two's to be 13-24 ( (2-1)*12+1=13 and (2-1)*12+12=24 ), etc

Or am I way off? I often make mistakes, so please let me know if I did. If not though, think the owner would respond? I'm in the process of making my own, and wanted to see if it had already been done. I saw this, and thought.....mine just has to be better lol, then thought it'd be cool to see how he did things and maybe 'borrow' an idea :p I was most curious to see how he recorded who had voted who, and found this error. I'm surprised nobody noticed it in-game :/ Then again, usually the guy who needs to be kicked won't randomly kick back, and if they do, nobody listens to them haha.

-Chris
 

Darg

Administrator
Reaction score
49
Hi Chris,

I can't help since I don't play or map anymore. And I'm half asleep right now. If you think there is a mistake and you've tested out a fix and it works, then you are welcome to attach it into this thread so others can benefit from your work.

I can't say if anyone has really used this or not in-game. Don't think even I did.
 

LoveTD's

New Member
Reaction score
34
really nice system, I changed the triggers a bit so you can also type:
-kick [name]
-kick [color]

my trigger:
Trigger:
  • Vote to Kick a Player
    • Events
      • Player - Player 1 (Red) types a chat message containing -kick as A substring
      • Player - Player 2 (Blue) types a chat message containing -kick as A substring
      • Player - Player 3 (Teal) types a chat message containing -kick as A substring
      • Player - Player 4 (Purple) types a chat message containing -kick as A substring
      • Player - Player 5 (Yellow) types a chat message containing -kick as A substring
      • Player - Player 6 (Orange) types a chat message containing -kick as A substring
      • Player - Player 7 (Green) types a chat message containing -kick as A substring
      • Player - Player 8 (Pink) types a chat message containing -kick as A substring
      • Player - Player 9 (Gray) types a chat message containing -kick as A substring
      • Player - Player 10 (Light Blue) types a chat message containing -kick as A substring
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, 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
                  • (Entered chat string) Equal to (-kick + Color_of_player[(Integer A)])
                  • (Entered chat string) Equal to (-kick + name_of_player[(Integer A)])
            • Then - Actions
              • Set int_player[(Integer A)] = (Integer A)
              • Set PlayerWhoMightBeKicked = (Player number of (Player(int_player[(Integer A)])))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • And - All (Conditions) are true
                    • Conditions
                      • (Integer((Substring((Entered chat string), 7, 8)))) Greater than or equal to 1
                      • (Integer((Substring((Entered chat string), 7, 8)))) Less than or equal to 10
                • Then - Actions
                  • Set PlayerWhoMightBeKicked = (Player number of (Player((Integer((Substring((Entered chat string), 7, 8)))))))
                • Else - Actions
      • Player Group - Remove all players from Player_group_triggering_player
      • Player Group - Add (Triggering player) to Player_group_triggering_player
      • -------- Check to see if the player is actually playing in the game. --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • ((Player(PlayerWhoMightBeKicked)) slot status) Equal to Has left the game
              • ((Player(PlayerWhoMightBeKicked)) slot status) Equal to Is unused
        • Then - Actions
          • Game - Display to Player_group_triggering_player for 6.00 seconds the text: ((Name of (Player(PlayerWhoMightBeKicked))) + is not playing or is empty.)
          • Skip remaining actions
        • Else - Actions
      • -------- Has the player voted for themselves? --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player number of (Triggering player)) Equal to PlayerWhoMightBeKicked
        • Then - Actions
          • -------- Check to see if the player is stupidly voting for himself or not --------
          • Game - Display to Player_group_triggering_player for 6.00 seconds the text: You can't kick your...
          • Skip remaining actions
        • Else - Actions
      • -------- Has the player already voted? --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PlayerHasVotedForPlayer[((Player number of (Triggering player)) x PlayerWhoMightBeKicked)] Equal to False
        • Then - Actions
          • -------- Check to see if the player has already made a vote against the other player. --------
          • Set NumVotes[PlayerWhoMightBeKicked] = (NumVotes[PlayerWhoMightBeKicked] + 1)
          • Set PlayerHasVotedForPlayer[((Player number of (Triggering player)) x PlayerWhoMightBeKicked)] = True
          • Game - Display to (All players) for 6.00 seconds the text: (((Name of (Triggering player)) + has started a vote kick against ) + (Name of (Player(PlayerWhoMightBeKicked))))
          • Game - Display to (All players) for 6.00 seconds the text: (((Name of (Player(PlayerWhoMightBeKicked))) + has had ) + ((String(NumVotes[PlayerWhoMightBeKicked])) + vote(s) against him.))
          • Set NumVotesNeededToKick[PlayerWhoMightBeKicked] = (((NumPlayers / 2) - NumVotes[PlayerWhoMightBeKicked]) + 1)
          • Game - Display to (All players) for 6.00 seconds the text: (((Name of (Player(PlayerWhoMightBeKicked))) + needs ) + ((String(NumVotesNeededToKick[PlayerWhoMightBeKicked])) + more vote(s) to be kicked from the game.))
        • Else - Actions
          • Game - Display to Player_group_triggering_player for 6.00 seconds the text: ((Sorry, you have already voted for + (Name of (Player(PlayerWhoMightBeKicked)))) + to be kicked out of the game.)
          • Skip remaining actions
      • Trigger - Run Check if Player should be Kicked <gen> (checking conditions)


and ofcourse an init trigger:

Trigger:
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set name_of_player[1] = (Name of Player 1 (Red))
      • Set name_of_player[2] = (Name of Player 2 (Blue))
      • Set name_of_player[3] = (Name of Player 3 (Teal))
      • Set name_of_player[4] = (Name of Player 4 (Purple))
      • Set name_of_player[5] = (Name of Player 5 (Yellow))
      • Set name_of_player[6] = (Name of Player 6 (Orange))
      • Set name_of_player[7] = (Name of Player 7 (Green))
      • Set name_of_player[8] = (Name of Player 8 (Pink))
      • Set name_of_player[9] = (Name of Player 9 (Gray))
      • Set name_of_player[10] = (Name of Player 10 (Light Blue))
      • Set Color_of_player[1] = red
      • Set Color_of_player[2] = blue
      • Set Color_of_player[3] = teal
      • Set Color_of_player[4] = purple
      • Set Color_of_player[5] = yellow
      • Set Color_of_player[6] = orange
      • Set Color_of_player[7] = green
      • Set Color_of_player[8] = pink
      • Set Color_of_player[9] = gray
      • Set Color_of_player[10] = light blue


I am definitly using this in my map and your getting credits for it ofcourse :thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top