HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how do you make kick for player 1?

08-12-2002, 04:49 PM#1
Ciderax
How Can I make it So That If Just me the host "Red player 1"

Can type: Kick (player or players #)

and that player gets kicked
I have a lot of newbies and laggers join my games and I would like to add this kick


please tell me step by step on exactly what you have to do.
08-12-2002, 06:16 PM#2
Guest
Event - Player enters chat message kick as a substring
Condition - substring(entered chat message, 1, 4) = kick
Action - Set PlayerNum = Integer(Substring(entered chat message, 6, 7))
Action - Defeat player PlayerNum
08-12-2002, 07:01 PM#3
Ciderax
heh, I still need some help first time messing with triggers =/.

Can you tell me with more detail some of the things on your list arnt even in the Trigger,even,action section
08-12-2002, 07:25 PM#4
Guest
Event - Player enters chat message kick as a substring

(Player - Chat Message)

Condition - substring(entered chat message, 1, 4) = kick

(String Comparison) (Substring is a string function that you will find on the list of functions)

Action - Set PlayerNum = Integer(Substring(entered chat message, 6, 7))

(Set Variable. Note: PlayerNum is defined as an integer)

Action - Defeat player PlayerNum

(Game - Defeat)

And yes, everyone will be able to see it unless you're on a different force and choose allied chat. Or you can probably go up the the chat button at the top of the screen and choose to send it to observers. I don't think anyone else will see it then...
08-12-2002, 07:39 PM#5
Ciderax
(Set Variable. Note: PlayerNum is defined as an integer)



I don't see how to set it?
08-12-2002, 07:56 PM#6
Guest
with the action "set variable", it will show something like
Set Variable to Variable
Choose the first "Variable" and then go to Edit Variables, there make a new variable called "PlayerNum" and choose Integer as type. Now click okay and choose for the second "Variable" field "Conversion - Convert String to Integer".
Select the value "Entered Chat String" and choose "Substring" from the "Function" drop down list.
There, click on "String" and select "Event Response - Entered Chat String". Click ok. Enter "6" and "7" in the remaining two fields. Click okay until you're out of the dialogs.
08-12-2002, 07:57 PM#7
Guest
Yeah...what he said :)

Thanks FickDich
08-12-2002, 09:12 PM#8
Ciderax
Hmm diddnt work, =(..

Thanks anyway.
Maybe you can make the map with just the kick trigger and upload it and give me the URL so I can copy and paste the events to mine?