timeban after 3 kicks with 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

timeban after 3 kicks with reason...

Started by angelsanges, 22 February, 2004, 22:56:26

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

angelsanges

it is possible a script that timebans a user after 3 kick?...

example: You're banned for 48 hours reason: 3kicks

nErBoS

#1
It's possible to do but it haves to be changed in the script that you are using, because of the kick in the script.

But if you are using a script that don't have kick commands you only use the kick on the client

this may help you..

--Requested by angelsanges
--Made by nErBoS

Bot = "CounterKick"

kick = {}

function Main()
frmHub:RegBot(Bot) 
end 

function NewUserConnected(user, data) 
if (kick[user.sName] == nil ) then
kick[user.sName] = 0
end
if (kick[user.sName] == 3 ) then
user:SendData(Bot, "You are been banned for 3 kicks.")
user:TimeBan(48*60)
kick[user.sName] = 0
end
end

function DataArrival(user, data)

if strfind(data,"is kicking") then
	local _,_, name = strfind(data,"%b<>%s*%S+%sis%skicking%s(%S+)%sbecause:%s")
	kick[name] = kick[name] + 1
end
end

Best regards, nErBoS
--## nErBoS Spot ##--

SMF spam blocked by CleanTalk