leozynho123
Member
- Joined
- Sep 14, 2014
- Messages
- 128
- Reaction score
- 8
good night, wanted to know how to edit my talkaction for her to "viptime" and not premiumdays, thank you !!
function onSay(cid,words,param)
local v,s = getThingPos(cid),12754 --- number is storage value.
if getPlayerLevel(cid) >= 150 then
if getPlayerStorageValue(cid,s) ~= 1 then
doPlayerAddPremiumDays(cid,1)
doPlayerSendTextMessage(cid,27,'You got 1 day of premium so you can experience the benefits of premium!')
setPlayerStorageValue(cid,s,1)
doSendMagicEffect(v,12)
else
doPlayerSendTextMessage(cid,27,'You can\'t use this twice!')
doSendMagicEffect(v,2)
end
else
doPlayerSendTextMessage(cid,19,'You need to be level 150 or higher to try out premium.')
doSendMagicEffect(v,2)
end
return true
end
function onSay(cid,words,param)
local v,s = getThingPos(cid),12754 --- number is storage value.
if getPlayerLevel(cid) >= 150 then
if getPlayerStorageValue(cid,s) ~= 1 then
doPlayerAddPremiumDays(cid,1)
doPlayerSendTextMessage(cid,27,'You got 1 day of premium so you can experience the benefits of premium!')
setPlayerStorageValue(cid,s,1)
doSendMagicEffect(v,12)
else
doPlayerSendTextMessage(cid,27,'You can\'t use this twice!')
doSendMagicEffect(v,2)
end
else
doPlayerSendTextMessage(cid,19,'You need to be level 150 or higher to try out premium.')
doSendMagicEffect(v,2)
end
return true
end