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
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
Cheers nErBoS :D nice script m8