please someone help me
please help about blacklist players
Moderator: Cheaters
-
edwin211
- Newcomer
- Posts: 12
- Joined: January 10th, 2014, 3:13 pm
please help about blacklist players
I want to add a blacklist player into a map, can give me trigger? trigger so that when it enters the game player will kicked after loading screen..
please someone help me
please someone help me
-
haxorico
- Super Moderator
- Posts: 3203
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: please help about blacklist players
Under endglobals
Under the locals of function main
If you want to ban several people, just repeat the line.
Like:
Code: Select all
function blackListPlayer takes string banName returns nothing
local integer i=0
set banName=StringCase(banName,false)
loop
exitwhen i>11
if (StringCase(GetPlayerName(Player(i)),false)==banName) then
call CustomDefeatBJ(Player(i),"BANNED")
endif
set i=i+1
endloop
endfunction
Code: Select all
call blackListPlayer("PLAYER NAME")
Like:
Code: Select all
call blackListPlayer("Player 1")
call blackListPlayer("Player 2")
