bom esse script quando eu falo !evento on para abrir o evento com god não acontece nada nem quando eu falo !evento off alguém pode me ajudar ??
function onSay(cid, words, param, channel)
if param == "on" or param == "off" then
if getPlayerAccess(cid) > 5 then
setGlobalStorageValue(9847, param == "on" and 1 or -1)
doBroadcastMessage("O evento esta" .. (param == "on" and "aberto" or "fechado") .. ".")
return true
end
return false
end
if param == "" or not param then
if getGlobalStorageValue(9847) < 0 then
return doPlayerSendCancel(cid, "O evento esta fechado agora.")
end
local tmp = getCreaturePosition(cid)
local pos = {x = 1045, y = 333, z = 7}
local minlevel = 8
if getPlayerLevel(cid) >= minlevel then
if getPlayerSkullType(cid) >= 3 then
doPlayerSendCancel(cid, "Você não pode ir com pk")
else
doTeleportThing(cid, pos, true)
doSendMagicEffect(tmp, CONST_ME_POFF)
doSendMagicEffect(pos, 35)
end
else
doPlayerSendCancel(cid, "Você deve ter level ".. minlevel ..".")
end
end
return true
end
Pergunta
oralb 1
bom esse script quando eu falo !evento on para abrir o evento com god não acontece nada nem quando eu falo !evento off alguém pode me ajudar ??
function onSay(cid, words, param, channel) if param == "on" or param == "off" then if getPlayerAccess(cid) > 5 then setGlobalStorageValue(9847, param == "on" and 1 or -1) doBroadcastMessage("O evento esta" .. (param == "on" and "aberto" or "fechado") .. ".") return true end return false end if param == "" or not param then if getGlobalStorageValue(9847) < 0 then return doPlayerSendCancel(cid, "O evento esta fechado agora.") end local tmp = getCreaturePosition(cid) local pos = {x = 1045, y = 333, z = 7} local minlevel = 8 if getPlayerLevel(cid) >= minlevel then if getPlayerSkullType(cid) >= 3 then doPlayerSendCancel(cid, "Você não pode ir com pk") else doTeleportThing(cid, pos, true) doSendMagicEffect(tmp, CONST_ME_POFF) doSendMagicEffect(pos, 35) end else doPlayerSendCancel(cid, "Você deve ter level ".. minlevel ..".") end end return true endLink para o comentário
https://xtibia.com/forum/topic/228704-script-evento-on-evento-off-bugado/Compartilhar em outros sites
12 respostass a esta questão
Posts Recomendados