PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: WickeD on 13 September, 2004, 22:18:42

Title: Help me plz!
Post by: WickeD on 13 September, 2004, 22:18:42
Can eny one help me so this massage shows to OP and Users and not only to Users?

---------------------------------------------------------------

-- Main Sub
function Main()
frmHub:RegBot(BotName)
end

function
NewUserConnected(curUser)

for key, value in ISP do --Loop ISP Array
if (strfind(strlower(curUser.sName), strlower(value),1,1)) then
curUser:SendData(BotName,"Your curent [ISP]-Tag is: "..value.." and are allowed in this hub!")
x=1
break
else
x=0
end
end

---------------------------------------------------------------


//WickeD
Title:
Post by: Herodes on 14 September, 2004, 00:31:56
heya wicked ... u can use the OpConnected function for that ...

also some nice guidance for the Ptokax functions (and other stuff about scripting in PtokaX) in the Scripting.txt inside the docs folder . .
Title: Ok!
Post by: WickeD on 14 September, 2004, 11:08:07
Thx my m8!!  =)

//WickeD