good night guys, I come to you today asking for a modification to a script, I would like this script, buy potion, was modified to be used only on pz. Thanks in advance.
Code:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 15000) == TRUE then
local bp = doPlayerAddItem(cid, 8473, 100)
doSendMagicEffect(getCreaturePosition(cid),13)
(getTilePzInfo(getCreaturePosition(cid)) == FALSE) then
doCreatureSay(cid, "You just bought a Potion!", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "You do not have enough money!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end