tatu hunter
Insane Mind~
Hello, I made some changes in the buyprem of forgotten server and I think its more better ;P
go to data/talkactions/buyprem.lua and replace with this one:
To buy premium just type:
Edit...
Bugs Fixed thx to babalow
go to data/talkactions/buyprem.lua and replace with this one:
Code:
function onSay(cid, words, param)
if getPlayerPremiumDays(cid) <= 365 then
--- Config here the price per day
local priceDay = 2000 -- Price per Day
if param == "" then
cost = priceDay
oneDay = 1
if doPlayerRemoveMoney(cid, cost) == TRUE then
doPlayerAddPremiumDays(cid, oneDay)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought one day of premium account.")
else
doPlayerSendCancel(cid, "You don't have enough money.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
if getPlayerPremiumDays(cid) + param <= 365 then
local cost = param * priceDay
if doPlayerRemoveMoney(cid, cost) == TRUE then
doPlayerAddPremiumDays(cid, param)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought ".. param .." days of premium account.")
else
doPlayerSendCancel(cid, "You don't have enough money.")
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
end
else
doPlayerSendCancel(cid, "You can not buy more than one year of Premium Account.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
I hope someone like it ;P!buypremium "5
5 is the days of premium you will buy, just change the number.
Edit...
Bugs Fixed thx to babalow
Last edited: