PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: tassen on 16 March, 2005, 16:54:43

Title: Operator problem!
Post by: tassen on 16 March, 2005, 16:54:43
Hello there!
I cant get in a string or something to exclude type Op or higher in this small scripts.
Now it's run on everybody.


-- Anti-Client this is for DCGui script by Tassen


function MyINFOArrival(curUser, sData)
if curUser.sClient == "Valknut" then
curUser:SendData(" Sorry but DCGui is unwanted here at the moment!")
SendToAll("Anti-Client","Sorry but DCGui is unwanted here at the moment!")
--SendToAll("",sData)
--curUser:SendData("$ForceMove "..frmHub:GetRedirectAddress())
curUser:Disconnect()
return 1
end
end
Title:
Post by: jiten on 16 March, 2005, 17:00:37
Here you go:

function MyINFOArrival(curUser, sData)
if curUser.sClient == "Valknut" then
if not curUser.bOperator then
curUser:SendData(" Sorry but DCGui is unwanted here at the moment!")
SendToAll("Anti-Client","Sorry but DCGui is unwanted here at the moment!")
--SendToAll("",sData)
--curUser:SendData("$ForceMove "..frmHub:GetRedirectAddress())
curUser:Disconnect()
else
end
return 1
end
end


Best regards,

jiten
Title: Works great!
Post by: tassen on 16 March, 2005, 17:26:00
Script is working now!

tnx
Title:
Post by: jiten on 16 March, 2005, 17:33:09
yw