1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Make it so that only Host can kick players

Discussion in 'World Editor Help Zone' started by DaneTheBeast, Oct 4, 2015.

  1. DaneTheBeast

    DaneTheBeast

    Joined:
    Dec 11, 2014
    Messages:
    608
    Resources:
    1
    Maps:
    1
    Resources:
    1
    [Solved] Make it so that only Host can kick players

    I used this thing LINK to set the host into a variable. how can i make it so that when someone types in "-kick blue/yellow/red/whatever color" for it to check to see if its the host who typed it.

    GUI
     
    Last edited: Oct 24, 2015
  2. http://www.hiveworkshop.com/forums/spells-569/kick-system-v1-1-a-140195/?prev=search%3Dkick%26d%3Dlist%26r%3D20%26t%3D65
    http://www.hiveworkshop.com/forums/spells-569/votekick-system-v2-1b-eleljrk-143613/?prev=search%3Dkick%26d%3Dlist%26r%3D20%26c%3D114%26t%3D65
    ---
    Basically, you create a trigger that has the event 'Player 1 Red types in -kick 2 as exact match', for example, then simply mark the game for player 2 as defeated. You can use the variable you mentioned to replace the Player 1 with the actual host.
     
  3. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    26,190
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Not possible because there is no "host player".

    Best you can do is a vote kick feature (democracy rules) or to lock kick functionality to a single slot.

    If your game is hosted by robots you could get the robot to feed in some concept of session owner (or people with administrator privileges).
     
  4. Nestharus

    Nestharus

    Joined:
    Jul 10, 2007
    Messages:
    6,146
    Resources:
    8
    Spells:
    3
    Tutorials:
    4
    JASS:
    1
    Resources:
    8
    Uhm, most games are now hosted by bots.

    The script you are using just finds the player with the lowest ping. This is, in non-bot games, usually the host. However, the ping will be large if they are tabbed out or stalling.

    Anyways, working off of hosts isn't normally done anymore. Games usually go for an admin slot now, that slot being "Red."
     
  5. DaneTheBeast

    DaneTheBeast

    Joined:
    Dec 11, 2014
    Messages:
    608
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Thanks for your help guys. Is there any other trick to locate the host?
     
  6. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    26,190
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    No as there is no such concept as "host player" in WC3. Closest you can do is pull down elevated permission data from a robot (which you must custom program to deal with) in which case multiple players in a session could be given elevated permission to kick people or that only the session creator (person who ordered the robot to host) has permission to kick.