wc3edit.net

United Warcraft 3 map hacking!
It is currently August 19th, 2018, 9:41 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: May 13th, 2015, 2:42 am 
Offline
Newcomer

Joined: January 10th, 2014, 3:13 pm
Posts: 14
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 :(


Top
 Profile  
 
PostPosted: May 13th, 2015, 7:48 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3784
Location: JEW LAND
Under endglobals
Code:
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


Under the locals of function main
Code:
call blackListPlayer("PLAYER NAME")

If you want to ban several people, just repeat the line.
Like:
Code:
call blackListPlayer("Player 1")
call blackListPlayer("Player 2")


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)