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.
Auto kick trigger
Moderator: Cheaters
-
- The Flying Cow!
- Posts: 2196
- Joined: November 2nd, 2007, 10:34 pm
- Location: Melbourne
Re: Auto kick trigger
It'd be much easier to do this in JASS...
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
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
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
AutoCP3 now available for free!
-
- 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
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.
-
- The Flying Cow!
- Posts: 2196
- Joined: November 2nd, 2007, 10:34 pm
- Location: Melbourne
Re: Auto kick trigger
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
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!
AutoCP3 now available for free!
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Auto kick trigger
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....
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....
-
- 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
(Player_Names[(Player number of (Picked player))]
having trouble finding "player_names" in WE
-
- Senior Member
- Posts: 165
- Joined: January 25th, 2008, 5:20 pm
- Title: Lazy
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Auto kick trigger
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
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
-
- 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
Bl00D R3av3r wrote:go to string comparison and then chose player name
that works for conditions, but under actions?
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*