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
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
Script is working now!
tnx
yw