SI
pedido

Comando Igual Ao /b Em Verde Somente Para Vips

Por sickk, 05 de set. de 2012 em Scripts

otserv
tibia
script
3
631
sickkS
05 de setembro de 2012 às 16:48

Olá,

gostaria de um script igual ao /b de god só que com o comando !b e que apareça o nick do player e o level e depois a mensagem em verde somente para players vip.

Gostaria do script para funcionar no Perfect Vip System 3.0 [http://www.xtibia.com/forum/topic/133661-perfect-vip-system-30/]

Obrigado!

VodkartV
05 de setembro de 2012 às 17:30
function onSay(cid, words, param)
local storage,exausted = 78757,60
if param == "" then
doPlayerSendCancel(cid,"Digite algum texto.") return true
elseif not HaveCharaterAcess(cid) then
doPlayerSendCancel(cid,"Você precisa ser vip.") return true
elseif getPlayerStorageValue(cid, storage) >= os.time() then
doPlayerSendCancel(cid, "aguarde " .. getPlayerStorageValue(cid, storage) - os.time() .. " segundos.") return true
end
return doBroadcastMessage(getCreatureName(cid).." ["..getPlayerLevel(cid).."] Diz:\n"..param, MESSAGE_INFO_DESCR) and setPlayerStorageValue(cid, storage, os.time()+exausted) 
end

sickkS
05 de setembro de 2012 às 17:57

function onSay(cid, words, param)
local storage,exausted = 78757,60
if param == "" then
doPlayerSendCancel(cid,"Digite algum texto.") return true
elseif not HaveCharaterAcess(cid) then
doPlayerSendCancel(cid,"Você precisa ser vip.") return true
elseif getPlayerStorageValue(cid, storage) >= os.time() then
doPlayerSendCancel(cid, "aguarde " .. getPlayerStorageValue(cid, storage) - os.time() .. " segundos.") return true
end
return doBroadcastMessage(getCreatureName(cid).." ["..getPlayerLevel(cid).."] Diz:\n"..param, MESSAGE_INFO_DESCR) and setPlayerStorageValue(cid, storage, os.time()+exausted)
end

Perfeito !!

Obrigado :D