jareczekjsp
Member
Hello Guys I use Script
and I have problem because when I dont have whiteskull Command !pz ,working is write "You Don't Have Pz"
but when I have white skull nothing is write I can spamming !pz command ,how I can fix it guys?
When I have whiteskull Is error in console like that
Lua:
function onSay(cid, words, param, channel)
if not getCreatureCondition(cid, CONDITION_INFIGHT) then -- before is hasCondition.
return doPlayerSendCancel(cid, "You Don't Have Pz") and doSendMagicEffect(getThingPos(cid), 2)
end
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You Have To Wait " .. (math.floor(getInFightTicks(cid) / 1000) - os.time()) .. " Second For Pz.")
return true
end
and I have problem because when I dont have whiteskull Command !pz ,working is write "You Don't Have Pz"
but when I have white skull nothing is write I can spamming !pz command ,how I can fix it guys?
Post automatically merged:
When I have whiteskull Is error in console like that
Lua:
[3:10:06] [Error - TalkAction Interface]
[3:10:06] data/talkactions/scripts/pz.lua:onSay
[3:10:06] Description:
[3:10:06] data/talkactions/scripts/pz.lua:6: attempt to call global 'getInFightTicks' (a nil value)
[3:10:06] stack traceback:
[3:10:06] data/talkactions/scripts/pz.lua:6: in function <data/talkactions/scripts/pz.lua:1>
Last edited: