Ataro
Member
Is there an lua script for that?
I want that if you say example: !test
you loose 5 premium points.
This is not working:
Neither is:
Full script:
Someone can help me?
I want that if you say example: !test
you loose 5 premium points.
This is not working:
Lua:
if doPlayerAccountAddPremium_Points(cid, -5) == true then
Lua:
if doAccountAddPremium_Points(cid, -5) == true then
Lua:
function onSay(cid, words, param)
local test = 8931
if doPlayerAccountAddPremium_Points(cid, -5) == true then
doPlayerPopupFYI(cid, "Working :O ")
doPlayerAddItem(cid, test, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
else
doPlayerSendCancel(cid, "Sorry, test error xD .")
end
return true
end
Last edited: