• 🏆 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!

Make it so that only Host can kick players

Status
Not open for further replies.
Level 12
Joined
Dec 11, 2014
Messages
662
[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:

Ardenian

A

Ardenian

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.
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,192
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).
 
Level 31
Joined
Jul 10, 2007
Messages
6,306
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."
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,192
Is there any other trick to locate the host?
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.
 
Status
Not open for further replies.
Top