Ola, Aproveitei o meu amigo q fez oo script do /mute e fiz um parecido, mas alteriei umas coisas pra fica do jeito q o Vedson quer, Com o tempo definido pelo gm ou god, porém o script q eu fiz, não funcionou, e gostaria q vcs revisse o q esta de errado nele, desde ja agradeço.....
--Mute Command
function onSay(cid,words,param)
local condition = createConditionObject(CONDITION_MUTED)
target = getPlayerByName(param)
local access = getPlayerAccess(cid)
if access >= 3 then
if isPlayer(getPlayerByName(param)) == 1 then
doPlayerSendTextMessage(target,25,'You got muted by '..muted..' for 10 minutes.')
doPlayerSendTextMessage(cid,21,"You just muted "..param..".")
addEvent(onTime,10*60*1000,a)
end
end
end
function onSay(cid, words, param)
--Config
t = string.explode(param, ",")
time = t[2]
player = getPlayerByName(param)
--Mensagem que será enviada ao jogador
message = "You have been muted by ".. getCreatureName(cid) .."."
--Tempo padrão em minutos, se não colocado vírgula(/muted Player,tempo)
defaultTime = 10
-//Config
if not time then
addEvent(doTeleportThing, defaultTime * 60 * 1000, player)
doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, message)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "you muted "..or defaultTime ..".")
addEvent(doTeleportThing, time * 60 * 1000, player)
doSendMagicEffect(jailPosition, CONST_ME_TELEPORT)
doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, message)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You muted "..or defaultTime ..".")
else
doPlayerSendCancel(cid, "This command requires param.")
end
return true
end
else
if player > 1 then
doAddCondition(player, condition)
else
doPlayerSendCancel(cid, "Este Player nao esta Online ou nao existe.")
end
Esse ai é o script e queria q um scripter visse ele para q eu possa saber se ta certo....
Créditos:
50% --By TibiaGame XTibia
50% --CM ROX (EU)
Gratz....
POR FAVOR QUANDO PASSAR DEIXE UM POST PELO MENOS... E SE PUDEREM REFAÇA ESSE SCRIPT E ME MOSTRE ONDE TA O(S) ERRO(S) SE TIVER......Lembrando a versão é 8.50
IP do OT: maragato.servegame.com ROX