Make it so that only Host can kick players

Status
Not open for further replies.
Level 12
Joined
Dec 11, 2014
Messages
665
[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 64
Joined
Jan 18, 2005
Messages
27,285
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