Request ... Dissconect Users who arent VIPs
 

Request ... Dissconect Users who arent VIPs

Started by ((UKSN))shad_dow, 18 March, 2004, 11:52:41

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

((UKSN))shad_dow

Heelo , plop,kepp,phatty,Nightlinch, and all @ lua fourms

its me again LOL

right staright to the point ..

i need help /or a sample script that will check users with ((UKSN)) prefix on there nicks to see if there reg as vips if not ,i wont it to disconnect them ,saying that ((UKSN)) prefix is for VIPs Only , please change nick and come back  .....

any help will be much appreatied as all ways :)

cheers

 :D  :D  :D
creator of Therapy-X? bot

nErBoS

Hi,

Hope it helps..

--Rquested by ((UKSN))shad_dow
--Made by nErBoS

Bot = "Prefix-Checker"

function Main()
	frmHub:RegBot(Bot)
end

function NewUserConnected(user, data)
	if (strsub(user.sName,1,8) == "((UKSN))") then
		if not (user.iProfile == 2) then
			user:SendData(Bot, "You are not allowed to have ((UKSN)) on your nick.")
			user:Disconnect()
		end
	end
end

function DataArrival(user, data)
	if (strsub(user.sName,1,8) == "((UKSN))") then
		if not (user.bOperator or user.iProfile == 2) then
			user:SendData(Bot, "You are not allowed to have ((UKSN)) on your nick.")
			user:Disconnect()
		end
	end
end

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

((UKSN))shad_dow

Cheers  nErBoS   :D  nice script m8
creator of Therapy-X? bot

SMF spam blocked by CleanTalk