Hi, I used the search and I couldn't find it. Player are learning spells without buying it, how can I turn it off?.
Another thing is that player get 5 premium trial days, but if he waits 5 days and make another character he can get p.a again, how do I fix it?.
Here's the code I made:
function onAdvance(cid)
-- Trial Premium
if getPlayerStorageValue(cid, 30004) == -1 and getPlayerLevel(cid) == 2 and getPlayerPremiumDays(cid) == 0 then
doPlayerAddPremiumDays(cid, 5)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have received 5 days of trial premium account, enjoy it!")
setPlayerStorageValue(cid, 30004, 1)
end
return TRUE
end
Thank you.
Another thing is that player get 5 premium trial days, but if he waits 5 days and make another character he can get p.a again, how do I fix it?.
Here's the code I made:
function onAdvance(cid)
-- Trial Premium
if getPlayerStorageValue(cid, 30004) == -1 and getPlayerLevel(cid) == 2 and getPlayerPremiumDays(cid) == 0 then
doPlayerAddPremiumDays(cid, 5)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have received 5 days of trial premium account, enjoy it!")
setPlayerStorageValue(cid, 30004, 1)
end
return TRUE
end
Thank you.