wc3edit.net

United Warcraft 3 map hacking!
It is currently March 29th, 2024, 10:03 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: how to do this !
PostPosted: May 25th, 2018, 7:59 am 
Offline
Junior Member
User avatar

Joined: July 6th, 2017, 2:20 pm
Posts: 33
how to do write a custom command kick like "fukki kick" ???? Who can tell me ?


Top
 Profile  
 
 Post subject: Re: how to do this !
PostPosted: May 25th, 2018, 10:55 am 
Offline
Forum Staff
User avatar

Joined: March 23rd, 2016, 8:06 pm
Posts: 3236
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


Top
 Profile  
 
 Post subject: Re: how to do this !
PostPosted: May 26th, 2018, 3:35 am 
Offline
Junior Member
User avatar

Joined: July 6th, 2017, 2:20 pm
Posts: 33
tks devoltz i just only to copy all code that right ?
i wrote the "-kick" command but did not see the board as fukki


Top
 Profile  
 
 Post subject: Re: how to do this !
PostPosted: May 26th, 2018, 10:29 am 
Offline
Forum Staff
User avatar

Joined: March 23rd, 2016, 8:06 pm
Posts: 3236
I tought you wanted his kick method, not the whole stuff.


Top
 Profile  
 
 Post subject: Re: how to do this !
PostPosted: May 26th, 2018, 11:45 am 
Offline
Junior Member
User avatar

Joined: July 6th, 2017, 2:20 pm
Posts: 33
i want a "kick like fukki" but do not know how you can help please


Top
 Profile  
 
 Post subject: Re: how to do this !
PostPosted: May 26th, 2018, 12:26 pm 
Offline
Forum Staff
User avatar

Joined: March 23rd, 2016, 8:06 pm
Posts: 3236
Well, you have to create a dialogs buttons, attach some integers and players to it.
Pretty complex and not useful.


Top
 Profile  
 
 Post subject: Re: how to do this !
PostPosted: May 27th, 2018, 2:14 am 
Offline
Junior Member
User avatar

Joined: July 6th, 2017, 2:20 pm
Posts: 33
oh tks devoltz maybe not anyone help me possible do this @@


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)