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: