how to do this !

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Post Reply
User avatar
daitan123
Junior Member
Posts: 28
Joined: July 6th, 2017, 2:20 pm

how to do this !

Post by daitan123 »

how to do write a custom command kick like "fukki kick" ???? Who can tell me ?
User avatar
devoltz
Forum Staff
Posts: 2998
Joined: March 23rd, 2016, 8:06 pm

Re: how to do this !

Post 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
User avatar
daitan123
Junior Member
Posts: 28
Joined: July 6th, 2017, 2:20 pm

Re: how to do this !

Post 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
User avatar
devoltz
Forum Staff
Posts: 2998
Joined: March 23rd, 2016, 8:06 pm

Re: how to do this !

Post by devoltz »

I tought you wanted his kick method, not the whole stuff.
User avatar
daitan123
Junior Member
Posts: 28
Joined: July 6th, 2017, 2:20 pm

Re: how to do this !

Post by daitan123 »

i want a "kick like fukki" but do not know how you can help please
User avatar
devoltz
Forum Staff
Posts: 2998
Joined: March 23rd, 2016, 8:06 pm

Re: how to do this !

Post by devoltz »

Well, you have to create a dialogs buttons, attach some integers and players to it.
Pretty complex and not useful.
User avatar
daitan123
Junior Member
Posts: 28
Joined: July 6th, 2017, 2:20 pm

Re: how to do this !

Post by daitan123 »

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