!kick <user> <reason>
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

!kick

Started by Ace, 02 December, 2004, 22:33:43

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ace

hello... i have a problem with a DCDM++  i`m using RAW comand $kick %[nick] because: .... but when te DCDM founds a faker, it does nothing, because i don`t have !kick script...
can anywone help me and give me an script, thats includes only the kick script, but not all robocop script??   ;(   ;(  :(  :(

bastya_elvtars

QuoteOriginally posted by Ace
hello... i have a problem with a DCDM++  i`m using RAW comand $kick %[nick] because: .... but when te DCDM founds a faker, it does nothing, because i don`t have !kick script...
can anywone help me and give me an script, thats includes only the kick script, but not all robocop script??   ;(   ;(  :(  :(

use !drop from ptokax and add a main event to a raw and a pm

much easier than running a script
Everything could have been anything else and it would have just as much meaning.

n1ck

$To: %[nick] From: %[mynick] $<%[mynick]> You are being kicked because: %[clienttype] - %[cheatingdescription]|<%[mynick]> is kicking %[nick] because: %[clienttype] - %[cheatingdescription]|<%[mynick]> !kick %[nick] %[cheatingdescription]|


Thats the RAW command you can use for dcdm++ that will kick auto for you, if thats what you meant. If you meant a script - theres loads of BOT out there for it. Thor to Robocop! Just look in the finished script section
dcuk.direct-connect.co.uk

**compiled bots are like what microsoft is to open source!**

Ace

ok, but can you give me anyway the script, please ?!  :(

Ace

#4
QuoteOriginally posted by n1ck
$To: %[nick] From: %[mynick] $<%[mynick]> You are being kicked because: %[clienttype] - %[cheatingdescription]|<%[mynick]> is kicking %[nick] because: %[clienttype] - %[cheatingdescription]|<%[mynick]> !kick %[nick] %[cheatingdescription]|


Thats the RAW command you can use for dcdm++ that will kick auto for you, if thats what you meant. If you meant a script - theres loads of BOT out there for it. Thor to Robocop! Just look in the finished script section

yes, a have that RAW comand in my DCDM, but my PtokaX don`t understand the !kick comand, and i nead a script where the kick (only) comand is defined

n1ck

function dokick(curUser,data)
      arg1,arg2 = GetArgs2(data)
            local Nick = GetItemByName(arg1)
            if Nick == nil then
               curUser:SendData(Bot,"The user is Offline..!")
               else
            if Nick.iProfile == 1 or Nick.iProfile == 0 and curUser.iProfile == 1 then
               curUser:SendData(Bot,"You cant kick a Operator..!")
            end

            if Mkicks[Nick.sName] == nil  then
               Mkicks[Nick.sName]=1
               else
               Mkicks[Nick.sName] = Mkicks[Nick.sName]+1
               end
               if Mkicks[Nick.sName] == MaxKicks then   
               SendToAll(Bot,"The user "..Nick.sName.."  has being banned beacuse "..MaxKicks.."/Kicks..! His ip was "..Nick.sIP)
               Mkicks[Nick.sName] = nil
               Nick:Ban()
               else         
               SendToAll(Bot,"AT: "..date("%d").."/"..date("%m").."-"..date("%Y").." KL: "..date("%T").." is "..curUser.sName.." is kicking: "..arg1.."  beacuse: "..arg2.." his ip was: "..Nick.sIP)   
               ReasonKick[Nick.sName] = ""..Nick.sName.." was last kicked for "..arg2..""
               SendPmToNick(arg1,Bot,"You are being kiced beacuse: "..arg2)
               Nick:TempBan()                  
            end
         end   
      end




Try that!
dcuk.direct-connect.co.uk

**compiled bots are like what microsoft is to open source!**

Ace

hmmm, it`s not working...
i just need a script, who kicks user when i write a comand !kick in main chat.... already thanks!  :(

bastya_elvtars

Try this RAW:

$To: %[nick] From: %[mynick] $<%[mynick]> You are being kicked because: %[clienttype] - %[cheatingdescription]|<%[mynick]> is kicking %[nick] because: %[clienttype] - %[cheatingdescription]|$Kick %[nick]|
Everything could have been anything else and it would have just as much meaning.

Ace

#8
i allready have tryed, byt in the raw script issn`t the problem, bet there, where my ptokax don`t understand that i`m/dcdm++ are typing in main chat !kick  :(

Ace

#9
i need to get theses line
[SIZE=3][B]!kick  			-	Kicks a user and adds to tempban[/B][/SIZE]  
 !ban  			-	Ban a user by IP (User kicked)
 !bannick  			-	Ban a nickname (User kicked if found)
 !banip  			-	Ban a IP or IP range (No check against online users)
  in to ptokax help text.... t.i. i need to become tahat line with others when i type !help in main chat... and i need to work that !kick comand....  please help me!  ;(  ;(

n1ck

are you saying that it works when you type it in main chat? or it doesnt work at all?
dcuk.direct-connect.co.uk

**compiled bots are like what microsoft is to open source!**

Ace

now the !kick comand doesnt work when i type it in the main chat, thats why my DCDM++ issn`t working propertly... :(

n1ck

Ok try this!
add to user commands in Dcdm++

(user menu and chat)

!kick %[nick] %[line:Reason]

Name it kick2 or something, you will see it on your right click!
dcuk.direct-connect.co.uk

**compiled bots are like what microsoft is to open source!**

bastya_elvtars

Man, use my RAW

it may work, altho not tested

btw theres kick after sending raw command option...
Everything could have been anything else and it would have just as much meaning.

Ace

#14
no! you bouth don`t understand me...  :(  in my raw line is OK

i`m all the time are receiving the List with fakers, who has slot locker and... and my DCDM++ doesn`t kick them because in my ptokax LUA scripts issn`t defineded the !kick comand...

In the all robocop scripts are the !kick comand, but i don`t need the all robocop script, except the !kick script, because i allready have same scripts, what i need....
please try to understand me  ;(

Optimus

-- Modded version VIPK by Plop
-- Fasted & easyest way haha (to make that is)

Bot = "=SimpleKick="

function Main()
	frmHub:RegBot(Bot)
end

function DataArrival(user,data)
	if( strsub(data, 1, 1) == "<" ) then
		data=strsub(data,1,strlen(data)-1) 
		local s,e,cmd = strfind(data,"%b<>%s+(%S+)") 
		if user.bOperator then
			if cmd == "!kick" then
				user:SendData(Bot, DoKick(user, data).."|")
				return 1
			end
		end
	elseif(strsub(data, 1, 4) == "$To:") then
		local s,e,whoTo = strfind(data,"$To:%s+(%S+)")
		if whoTo == Bot then 
			data=strsub(data,1,strlen(data)-1) 
			local s,e,cmd = strfind(data, "%$%b<>%s+(%S+)")
			if user.bOperator then
				if cmd == "!kick" then
					user:SendData(Bot, DoKick(user, data).."|")
					return 1
				end
			end
		end
	end
end

function DoKick(user, data)
   local s,e,name, reason = strfind(data, "%b<>%s+%S+%s*(%S*)%s*(.*)")
   if name == "" then
      return "*** I need a name to know who to kick!!"
   elseif reason == "" then
      return "*** I need a reason to kick the user!"
   else
      local victem = GetItemByName(name)
      if victem ~= nil then
         if victem.bOperator == nil then
            victem:SendData(Bot, "You have been kicked by: "..user.sName.." because of: "..reason.."|")
            victem:Disconnect()
            return name.." has been kicked!"
         else
            return "*** We don't kick Operators!!"
         end
      else
         return "*** "..name.." Isn't in the hub!!"
      end
   end
end


Maybe this is what you been looking for duno --> Optimus Not there lol

SMF spam blocked by CleanTalk