|
Post by 4ever92hours on Dec 5, 2005 2:47:29 GMT 1
very simple banlist Red = Variable Green - Things you change Variables BanList-String Array(5)- none People-Player Group-None Event Time - Elapsed game time is 5.00 sec Condition None Action Set BanList(1) = NAME OF PERSON U WANT BANNED Player Group - Pick every player in People and do (for each (Integer A from 1 to 5, do (If ((Name of Picked Player)) Equal to BanList [(Integer A)] then do (Game- Defeat (Picked Player) with message: MESSAGE U WANT WHEN THEY GET KIKED Else do Nothing Trigger - Turn Off (This Trigger)
|
|
Gir
Moderator
For the win!
Posts: 445
|
Post by Gir on Dec 5, 2005 4:19:57 GMT 1
good to tutorial wish i had known about it when i 1st started map makeing >.<
|
|
|
Post by darkwatchstudios on May 1, 2006 23:35:48 GMT 1
i had a long hard time finding the things so if you wanna just copy paste this text and put in game its much easier and i left the player name blank so u set it
function Trig_Untitled_Trigger_001_Func002Func001003001 takes nothing returns boolean return ( GetPlayerName(GetEnumPlayer()) == udg_BanList[GetForLoopIndexA()] ) endfunction
function Trig_Untitled_Trigger_001_Func002A takes nothing returns nothing set bj_forLoopAIndex = 1 set bj_forLoopAIndexEnd = 2 loop exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd if ( Trig_Untitled_Trigger_001_Func002Func001003001() ) then call CustomDefeatBJ( GetEnumPlayer(), "TRIGSTR_024" ) else call DoNothing( ) endif set bj_forLoopAIndex = bj_forLoopAIndex + 1 endloop endfunction
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing set udg_BanList[1] = "" call ForForce( udg_People, function Trig_Untitled_Trigger_001_Func002A ) call DisableTrigger( GetTriggeringTrigger() ) endfunction
//=========================================================================== function InitTrig_Untitled_Trigger_001 takes nothing returns nothing set gg_trg_Untitled_Trigger_001 = CreateTrigger( ) call TriggerRegisterTimerEventSingle( gg_trg_Untitled_Trigger_001, 5 ) call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions ) endfunction
|
|
|
Post by Ghost on May 2, 2006 10:21:37 GMT 1
its jass! gj
|
|
|
Post by 4ever92hours on May 2, 2006 16:49:33 GMT 1
lol u made a jass version? its gui convert
|
|