how to do this !
Moderator: Cheaters
-
- Junior Member
- Posts: 28
- Joined: July 6th, 2017, 2:20 pm
-
- Co-Admin
- Posts: 3133
- Joined: March 23rd, 2016, 8:06 pm
- Has thanked: 11 times
- Been thanked: 53 times
Re: how to do this !
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
-
- Junior Member
- Posts: 28
- Joined: July 6th, 2017, 2:20 pm
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
i wrote the "-kick" command but did not see the board as fukki
-
- Junior Member
- Posts: 28
- Joined: July 6th, 2017, 2:20 pm
-
- Co-Admin
- Posts: 3133
- Joined: March 23rd, 2016, 8:06 pm
- Has thanked: 11 times
- Been thanked: 53 times
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.
Pretty complex and not useful.
-
- Junior Member
- Posts: 28
- Joined: July 6th, 2017, 2:20 pm