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

Lua 2 functions script

wizzar

New Member
Joined
Aug 21, 2009
Messages
90
Reaction score
0
Code:
function onSay(cid, words, param)

     if(words == "/vip")then
        accountName = getPlayerAccount(cid)
        if(isSilverVip(accountName))then
            time1 = getSilverVipTime(accountName)
            if(time1 > 0)then
                doPlayerSendTextMessage(cid, 19, "Sua conta tem "..timeString(time1).." de Silver VIP.")
            else
                doPlayerSendTextMessage(cid, 19, "Sua conta tem Silver Vip Gr\átis.")
            end
        else
            doPlayerSendTextMessage(cid, 19, "Voce nao tem dias VIP.")
        end
       end
     return true
  end 

  function onSay(cid, words, param)

     if(words == "/vip")then
        accountName = getPlayerAccount(cid)
        if(isGoldVip(accountName))then
            time2 = getGoldVipTime(accountName)
            if(time1 > 0)then
                doPlayerSendTextMessage(cid, 19, "Sua conta tem "..timeString(time2).." de Gold VIP.")
            else
                doPlayerSendTextMessage(cid, 19, "Sua conta tem Gold Vip Gr\átis.")
            end
        else
            doPlayerSendTextMessage(cid, 19, "Voce nao tem dias VIP.")
        end
       end
     return true
  end

I'm creating a Vip Silver/Gold system and i need only 1 command to check wither silver or gold.
Any ideas?
 
Last edited:
Back
Top