People i need a small help in this script.
I need a script to buy an item only for premium players and only pay in loss premium days.
I need to TFS 0.3
a small exemple bugged
Help me in this script please
I need a script to buy an item only for premium players and only pay in loss premium days.
I need to TFS 0.3
a small exemple bugged
PHP:
local itemID = 2173
local vipDays = 6
local removeDays = 7
function onSay(cid, words, param)
if isPremium() then
else
doPlayerSendCancel(cid, "You need premium account.")
else
doPlayerRemovePremiumDays(cid, removeDays) == TRUE then
doPlayerAddItem(cid, itemID, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought more one rare item os in the Server.")
else
doPlayerSendCancel(cid, "You need "..vipDays.." to buy this item.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
end
Help me in this script please