• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

TALKACTION !VIPTEST

leozynho123

Member
Joined
Sep 14, 2014
Messages
129
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
 

Similar threads

Back
Top