Auto kick trigger

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
Vegas
Shopping Maul USA Creator
Posts: 1760
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada
Has thanked: 46 times
Been thanked: 9 times

Auto kick trigger

Post by Vegas »

How would it be possible to add a users name so that it is automatically detected by the game, then he is auto kicked?
I have been able to auto detect when a player is in a perticular color, and he types something in chat, but that snt practical.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Auto kick trigger

Post by Ozzapoo »

It'd be much easier to do this in JASS...

Code: Select all

local string PlayerName="<REPLACE THIS WITH THE PLAYER NAME>" //Entirely lowercase!
local integer i=0

loop
exitwhen i>11
if GetPlayerName(Player(i))==StringCase(PlayerName,false)then
call CustomDefeatBJ(Player(i),"You are banned.")
endif
set i=i+1
endloop
Just like... make any trigger, convert it to Custom Text and then put the above text between "function blablabla_Actions takes nothing returns nothing" and "endfunction". And, of course, set PlayerName to the banned player's name ;). Also, don't forget to set the trigger to run on Map Initialization. HF XD
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
User avatar
Vegas
Shopping Maul USA Creator
Posts: 1760
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada
Has thanked: 46 times
Been thanked: 9 times

Re: Auto kick trigger

Post by Vegas »

Thanks Oliver, Bt I am trying to tackle GUI ATM. I will see if I cant figure this out, but J is not my game.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Auto kick trigger

Post by Ozzapoo »

Well in GUI it should go something like this: (No access to WE at the moment so might be an error here or there)

For Integer A = 1 to 12
- If Player Name of (Player (Integer A)) is Equal to "Whatever" Then
- - <do whatever>
- Else
- End If
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Auto kick trigger

Post by Arabidnun »

Try this:

Untitled Trigger 002
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Name of (Picked player)) Equal to Vegas(I changed it =D, had my name in here)
Then - Actions
Game - Display to (All players) the text: (Player_Names[(Player number of (Picked player))] + is a banned player!)
Game - Defeat (Picked player) with the message: Banned!
Else - Actions

FINALLY!, somone has a gui thingy I can make..lol I Have been soooo bored....
User avatar
Vegas
Shopping Maul USA Creator
Posts: 1760
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada
Has thanked: 46 times
Been thanked: 9 times

Re: Auto kick trigger

Post by Vegas »

(Player_Names[(Player number of (Picked player))]

having trouble finding "player_names" in WE
User avatar
Bl00D R3av3r
Senior Member
Posts: 165
Joined: January 25th, 2008, 5:20 pm
Title: Lazy

Re: Auto kick trigger

Post by Bl00D R3av3r »

go to string comparison and then chose player name
Image
Sig by TheWand
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Auto kick trigger

Post by Arabidnun »

OHH!!! You don't know sorry, here, this is the trigger I created to help make it easier for player name color variables.

Player Colors
Events
Conditions
Actions
Set Player_Colors[1] = |c00ff0303
Set Player_Colors[2] = |c000042ff
Set Player_Colors[3] = |c001ce6b9
Set Player_Colors[4] = |c00540081
Set Player_Colors[5] = |c00fffc01
Set Player_Colors[6] = |c00ff8000
Set Player_Colors[7] = |c0020c000
Set Player_Colors[8] = |c00e55bb0
Set Player_Colors[9] = |c00959697
Set Player_Colors[10] = |c007ebff1
Set Player_Colors[11] = |c00106246
Set Player_Colors[12] = |c004e2a04
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set Player_Names[(Integer A)] = ((Player_Colors[(Integer A)] + (Name of (Player((Integer A))))) + |r)


I use this so instead of doing ((Player_Colors[(Integer A)] + (Name of (Player((Integer A))))) + |r) all the time, I just set the Player_Names[(Integer A)] To do it for me =D
User avatar
Vegas
Shopping Maul USA Creator
Posts: 1760
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada
Has thanked: 46 times
Been thanked: 9 times

Re: Auto kick trigger

Post by Vegas »

Bl00D R3av3r wrote:go to string comparison and then chose player name

that works for conditions, but under actions?
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Auto kick trigger

Post by Arabidnun »

*Coughf* Look up