Page 1 of 1

how to do this !

Posted: May 25th, 2018, 7:59 am
by daitan123
how to do write a custom command kick like "fukki kick" ???? Who can tell me ?

Re: how to do this !

Posted: May 25th, 2018, 10:55 am
by devoltz
Here

Code: Select all

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

Re: how to do this !

Posted: May 26th, 2018, 3:35 am
by daitan123
tks devoltz i just only to copy all code that right ?
i wrote the "-kick" command but did not see the board as fukki

Re: how to do this !

Posted: May 26th, 2018, 10:29 am
by devoltz
I tought you wanted his kick method, not the whole stuff.

Re: how to do this !

Posted: May 26th, 2018, 11:45 am
by daitan123
i want a "kick like fukki" but do not know how you can help please

Re: how to do this !

Posted: May 26th, 2018, 12:26 pm
by devoltz
Well, you have to create a dialogs buttons, attach some integers and players to it.
Pretty complex and not useful.

Re: how to do this !

Posted: May 27th, 2018, 2:14 am
by daitan123
oh tks devoltz maybe not anyone help me possible do this @@