Hi! I'm trying to make this script work but it always tells me that I am lower than a Game Master even when I am on my god character.
I would appreciate any help.
Just to clarify(if it's important), I am on Nekiro's TFS 1.5 downgrade to 8.6.
Lua:
local config = {
minGroupAccess = 4, -- groupid needed
effectID = CONST_ME_TELEPORT, -- what effect
positionXYZ = {x=1155,y= 923,z=7} -- where to be teleported to.
}
function onSay(cid,words,param)
if getPlayerAccess(cid) >= config.minGroupAccess then
doTeleportThing(cid,config.positionXYZ)
doSendMagicEffect(config.positionXYZ,config.effectID)
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_RED,'You have been teleported to the GM Island.')
else
doPlayerSendCancel(cid,'You cannot use this command if you are lower than a Game Master!')
doSendMagicEffect(getThingPos(cid),CONST_ME_POFF)
end
return true
end
I would appreciate any help.
Just to clarify(if it's important), I am on Nekiro's TFS 1.5 downgrade to 8.6.