Hello Otlanders, i need support from You.. I have this script:
and i want to this script checks
before the script give us promotion. Thanks ^_^
PHP:
function onUse(cid, item, frompos, item2, topos)
if (getPlayerPromotionLevel(cid) == 0) then
doPlayerSetPromotionLevel(cid, 1)
doRemoveItem(item.uid, 1)
doCreatureSay(cid, "Congratulations! You promoted!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), 49)
else
doPlayerSendCancel(cid, "You are already promoted or you don't have vip account")
end
return true
end
PHP:
getPlayerStorageValue(cid,11552)