• 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!

Vip Mock System deactivate

Sotomayor

New Member
Joined
Jan 28, 2012
Messages
77
Reaction score
4
Hello to all i have on my server 8.6 vip mock system work perfect but i want a talkaction to players when he say !vipdeleted he deactivate the vip he have i can do that with the god but sometimes i no have time so i want to all players have this command to deactivate the vip because when the vip its over on my webpage of Gesior say still are Vip and when a player if i no deactivate the vip status when the player buy vip dont give the vip days only for the players buy for first time vip work perfect sorry for my bad english and hope can help me thanks
 
talkactions.xml
Code:
<talkaction words="!reset" event="script" value="vip_reset.lua"/>

vip_reset.lua
Code:
function onSay(cid, words, param, channel)
local days = getPlayerVipDays(cid)
  
doRemoveVipDays(cid, days)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have removed your VIP days.")
return true
end

However, you might consider creating a VIP Medal which players can purchase from the shop and that way they won't have to reset there VIP in order to add more days. When they buy the medal and use it they can add X amount of days to their account.
 
Back
Top