wc3edit.net
https://forum.wc3edit.net/

how to do this !
http://forum.wc3edit.net/deprotection-cheating-f64/how-to-do-this-t35031.html
Page 1 of 1

Author:  daitan123 [ May 25th, 2018, 7:59 am ]
Post subject:  how to do this !

how to do write a custom command kick like "fukki kick" ???? Who can tell me ?

Author:  devoltz [ May 25th, 2018, 10:55 am ]
Post subject:  Re: how to do this !

Here
Code:
function kickExample takes nothing returns nothing
local string cmd=StringCase(GetEventPlayerChatString(),false)
local integer p2k
local integer index=0
loop
exitwhen index>10
if SubString(cmd,0,6)=="-kick "then
set p2k=S2I(SubString(cmd,6,7))
if Player(p2k)==GetLocalPlayer()then
call Player(-1)
endif
endif
set index=index+1
endloop
set cmd=""
endfunction

Author:  daitan123 [ May 26th, 2018, 3:35 am ]
Post subject:  Re: how to do this !

tks devoltz i just only to copy all code that right ?
i wrote the "-kick" command but did not see the board as fukki

Author:  devoltz [ May 26th, 2018, 10:29 am ]
Post subject:  Re: how to do this !

I tought you wanted his kick method, not the whole stuff.

Author:  daitan123 [ May 26th, 2018, 11:45 am ]
Post subject:  Re: how to do this !

i want a "kick like fukki" but do not know how you can help please

Author:  devoltz [ May 26th, 2018, 12:26 pm ]
Post subject:  Re: how to do this !

Well, you have to create a dialogs buttons, attach some integers and players to it.
Pretty complex and not useful.

Author:  daitan123 [ May 27th, 2018, 2:14 am ]
Post subject:  Re: how to do this !

oh tks devoltz maybe not anyone help me possible do this @@

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/