R
Runes
Guest
I started my server just to test my maps and stuff. But my account is free. It's not premium and I don't have command !buypremium or /buypremium. So how can I edit server to add accounts and premium ?
<talkaction words="!buypremium" script="premium.lua" />
function onSay(cid, words, param)
if getPlayerPremiumDays(cid) <= 360 then
if doPlayerRemoveMoney(cid, 100) == TRUE then
doPlayerAddPremiumDays(cid, 100)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought 100 days of premium account.")
else
doPlayerSendCancel(cid, "You don't have enough money, 100 days premium account costs 100 gold coins.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "You can not buy more than one year of Premium Account.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return TRUE
end