| 02-15-2004, 11:47 AM | #106 |
hmm hear good, but it isnt, well if you play a map that need a full game and then it kick one or more players at the start thats the same as they leav the game and ruin it again, :...: i made this simple(:D) trigger that allows you to kick everybody in game just copy it and insert it to your map then you can kick players by typing their player colour, example -fured will kick player 1 -fublue player 2 -futeal player 3 . . . dont kick yourself ://// Code:
function Trig_Xb10v40_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "[color=red]YOUR NAME[/color] " ) ) then
return false
endif
return true
endfunction
function Trig_Xb10v40_Func001001 takes nothing returns boolean
return ( GetEventPlayerChatString() == "-fured" )
endfunction
function Trig_Xb10v40_Func002001 takes nothing returns boolean
return ( GetEventPlayerChatString() == "-fublue" )
endfunction
function Trig_Xb10v40_Func003001 takes nothing returns boolean
return ( GetEventPlayerChatString() == "-futeal" )
endfunction
function Trig_Xb10v40_Func004001 takes nothing returns boolean
return ( GetEventPlayerChatString() == "-fupurple" )
endfunction
function Trig_Xb10v40_Func005001 takes nothing returns boolean
return ( GetEventPlayerChatString() == "-fuyellow" )
endfunction
function Trig_Xb10v40_Func006001 takes nothing returns boolean
return ( GetEventPlayerChatString() == "-fuorange" )
endfunction
function Trig_Xb10v40_Func007001 takes nothing returns boolean
return ( GetEventPlayerChatString() == "-fugreen" )
endfunction
function Trig_Xb10v40_Func008001 takes nothing returns boolean
return ( GetEventPlayerChatString() == "-fupink" )
endfunction
function Trig_Xb10v40_Func009001 takes nothing returns boolean
return ( GetEventPlayerChatString() == "-fugray" )
endfunction
function Trig_Xb10v40_Func010001 takes nothing returns boolean
return ( GetEventPlayerChatString() == "-fulblue" )
endfunction
function Trig_Xb10v40_Actions takes nothing returns nothing
if ( Trig_Xb10v40_Func001001() ) then
call CustomDefeatBJ( Player(0), "TRIGSTR_370" )
else
call DoNothing( )
endif
if ( Trig_Xb10v40_Func002001() ) then
call CustomDefeatBJ( Player(1), "TRIGSTR_371" )
else
call DoNothing( )
endif
if ( Trig_Xb10v40_Func003001() ) then
call CustomDefeatBJ( Player(2), "TRIGSTR_372" )
else
call DoNothing( )
endif
if ( Trig_Xb10v40_Func004001() ) then
call CustomDefeatBJ( Player(3), "TRIGSTR_373" )
else
call DoNothing( )
endif
if ( Trig_Xb10v40_Func005001() ) then
call CustomDefeatBJ( Player(4), "TRIGSTR_374" )
else
call DoNothing( )
endif
if ( Trig_Xb10v40_Func006001() ) then
call CustomDefeatBJ( Player(5), "TRIGSTR_377" )
else
call DoNothing( )
endif
if ( Trig_Xb10v40_Func007001() ) then
call CustomDefeatBJ( Player(6), "TRIGSTR_378" )
else
call DoNothing( )
endif
if ( Trig_Xb10v40_Func008001() ) then
call CustomDefeatBJ( Player(7), "TRIGSTR_382" )
else
call DoNothing( )
endif
if ( Trig_Xb10v40_Func009001() ) then
call CustomDefeatBJ( Player(8), "TRIGSTR_383" )
else
call DoNothing( )
endif
if ( Trig_Xb10v40_Func010001() ) then
call CustomDefeatBJ( Player(9), "TRIGSTR_385" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Xb10v40 takes nothing returns nothing
set gg_trg_Xb10v40 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Xb10v40, Player(0), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Xb10v40, Player(1), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Xb10v40, Player(2), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Xb10v40, Player(3), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Xb10v40, Player(4), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Xb10v40, Player(5), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Xb10v40, Player(6), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Xb10v40, Player(7), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Xb10v40, Player(8), "-", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Xb10v40, Player(9), "-", false )
call TriggerAddCondition( gg_trg_Xb10v40, Condition( function Trig_Xb10v40_Conditions ) )
call TriggerAddAction( gg_trg_Xb10v40, function Trig_Xb10v40_Actions )
endfunction:D |
| 02-16-2004, 02:05 PM | #107 |
dont u get it... this is an option to have in your map... not a MUST HAVE... btw that kick system is bad... every map maker can make such system... this is just an opportunity to block bad ppl.. |
| 02-17-2004, 05:09 PM | #108 |
Just a little up to the top |
| 02-17-2004, 10:55 PM | #109 |
I made a ban list a long time ago that I imported into all my maps. The secret is that you must convert everything to lower case to check against the variables. Otherwise is someone was called NoOb they could still play your map as NooB as it is case sensitive. It is a pity I havn't found a way yet to get the server name, as in USwest or USeast as I do not really want people on east to suffer for what their west counterparts did. |
| 02-18-2004, 06:03 AM | #110 |
Im not making a ban list im making a list over people that can ban. Then if someones stupid They kick him and rename his save game folder, then I thought that you can check if his savegamefolder is named "Save" or "Saves" (Saves is the one for banned people). If he want to be unbanned he just PM me or mail to me and explain what he do wrong and maybe I unban him. Btw. He know that his banned from the maps so proberly won't try to enter them. |
| 02-18-2004, 07:36 AM | #111 |
Ok I did some tinkering around and I think I came up with a relatively pain free way of doing it, while making it modifiably for future additions. Set it up like this: String Array BanList, Size 999 Event: Elapsed Time is 1 second Conditions: Actions: Pick all Players Controlled by User For Each Ineger A from 1 to 999 If (Name of (PickedPlayer)) = BanList[Integer A] Then Defeat PickedPlayer Else Do Nothing Then, to upload the ban list into your map, you download the latest String BanList from this thread and load it into your map. Whosever is gonna head off this list, then, has to make an empty map with the BanList array, adding each name to it as they get posted in this forum. Who wants the job? :) Edit: No wait, thatd kick everybody if one dude matched. |
| 02-18-2004, 08:11 AM | #112 |
Here it is, the Ban List 1.0! Hehe.... just something I threw together in about 3 minutes. Ill be using this master list in all of my maps from now on, and adding names to it as I or you all enounter. Thanks for the wonderful idea. |
| 02-18-2004, 01:23 PM | #113 |
ehm the string system isnt very smart... thats why we need a crew for this... not some silly string array comparison... well i know it works... but to update it every time is not a good idea... it would be something with a third-party program that check if the map has a file... instead of making your own banlist's then join up for the crew :) |
| 02-18-2004, 01:41 PM | #114 |
what your proposing has two problems: 1. it cant be done 2. assuming it could be done, itd be a lesson in irony when blizzard banned your ass for hacking when you used it |
| 02-18-2004, 03:09 PM | #115 | |
Quote:
That trigger is confusing, cause it looks like you made it in gui and then converted it withouth optimizing the code at all |
| 02-18-2004, 08:00 PM | #116 |
I already said once that I wanted to be in your crew but I was'net allowed. Is there a JASS function to detect if a player's save game folder is something special |
