PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: ((UKSN))shad_dow on 18 March, 2004, 11:52:41

Title: Request ... Dissconect Users who arent VIPs
Post by: ((UKSN))shad_dow on 18 March, 2004, 11:52:41
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
Title:
Post by: nErBoS on 18 March, 2004, 12:54:22
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
Title:
Post by: ((UKSN))shad_dow on 20 March, 2004, 00:46:23
Cheers  nErBoS   :D  nice script m8