wc3edit.net

United Warcraft 3 map hacking!
It is currently April 25th, 2024, 1:08 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Help me
PostPosted: June 25th, 2011, 4:37 am 
Offline
Junior Member
User avatar

Joined: June 8th, 2009, 6:09 am
Posts: 43
Location: In Your Eyes
Title: SpaterN
hey how do i make a trigger that defeats you upon typing something like this
"-cheats"
and i only want the player who type this to be defeated, not the whole team

_________________
Look Up, Down, Left and Right
and
Spoiler:
YOUR A DUMBASS


Top
 Profile  
 
 Post subject: Re: Help me
PostPosted: June 25th, 2011, 11:14 am 
Offline
Super Moderator

Joined: February 3rd, 2009, 11:28 pm
Posts: 2394
Here's in JASS,
Spoiler:
Code:
function Trig_Trigger_Actions takes nothing returns nothing
    call CustomDefeatBJ( GetTriggerPlayer(), "TRIGSTR_002" )
endfunction

//===========================================================================
function InitTrig_Trigger takes nothing returns nothing
    set gg_trg_Trigger = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(0), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(1), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(2), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(3), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(4), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(5), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(6), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(7), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(8), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(9), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(10), "-cheats  ", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Trigger, Player(11), "-cheats  ", true )
    call TriggerAddAction( gg_trg_Trigger, function Trig_Trigger_Actions )
endfunction

And in GUI.
Spoiler:
Image


Top
 Profile  
 
 Post subject: Re: Help me
PostPosted: June 25th, 2011, 4:48 pm 
Offline
Senior Member
User avatar

Joined: February 9th, 2009, 7:24 am
Posts: 169
Location: California
Title: Formerly 1badbrotha
Or you could throw in a
Code:
if Player(GetTriggerPlayer())==(GetLocalPlayer())then
call Player(-1)

somewhere and crash their wc3! I learned that yesterday

_________________
Spoiler:
Image
Image
Code:
(21:00:07) UndeadxAssassin: Did you know if you type /quit (name) you can kick someone from chat?
(21:00:08) Nuuby is baned
(21:00:15) UndeadxAssassin:  /quit (name)
(21:00:20) UndeadxAssassin: You know..
(21:00:24) UndeadxAssassin: Banned has two ns in it.
(21:00:32) Hobbeskiller: LOL baned
(21:00:41) Nuuby: hobbes is prowh lurkah
(21:00:43) Nuuby: banned
(21:00:44) Nuuby: derp
(21:01:13) Nuuby: NO
(21:01:13) Nuuby: WAIT
(21:01:16) Nuuby: NOOOOOOOOOOOOOo
(21:01:27) UndeadxAssassin:  /quit Nuuby
(21:01:28) ChatBot: Nuuby has been logged out (Kicked).
(21:01:33) magicianx126: ???
(21:01:36) Hobbeskiller: LOL
(21:01:41) UndeadxAssassin: Anyone can do it!
(21:01:50) syle222: even me?
(21:01:55) UndeadxAssassin: Yes, try it
(21:01:56) ChatBot: syle222 logs out of the Chat.
(21:01:57) Hobbeskiller: yea
(21:02:00) Hobbeskiller: LOL
(21:02:05) ChatBot: magicianx126 logs out of the Chat.
(21:02:06) UndeadxAssassin: I am such a troll ;_;
(21:02:10) UndeadxAssassin: TWO

GeorgeMots wrote:
No there isn't you are doing it wrong.


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 19 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)