Ola preciso de um script simples que bloqueia o player falar a palavra /ir se ele estiver com a storage 1234
Postado em outubro 22, 2020
kkkk, entendi foi nada
Postado em outubro 22, 2020
Se vc quer mute system
local muteCondition = Condition(CONDITION_MUTED, CONDITIONID_DEFAULT)
function onSay(player, words, param)
if player:getAccountType() < ACCOUNT_TYPE_TUTOR then
return true
end
if words == "/mute" then
local mute = param:split(",")
local targetPlayer = Player(mute[1])
if not targetPlayer then
player:sendCancelMessage("Player not found.")
return false
end
local time = tonumber(mute[2])
if not time or time > 30000 then
player:sendCancelMessage("Invalid time specified or time is more than 30000 minutes.")
return false
end
if targetPlayer:getAccountType() >= ACCOUNT_TYPE_TUTOR then
player:sendCancelMessage("Only players can be muted.")
return false
end
muteCondition:setParameter(CONDITION_PARAM_TICKS, time * 60 * 1000)
targetPlayer:addCondition(muteCondition)
targetPlayer:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been muted by " .. player:getName() .. " , to "..time.. " minutes.")
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You muted " .. targetPlayer:getName() .." to "..time.." minutes.")
return false
elseif words == "/unmute" then
local targetPlayer = Player(param)
if not targetPlayer then
player:sendCancelMessage("A player with that name is not online.")
return false
end
local condition = targetPlayer:getCondition(CONDITION_MUTED, CONDITIONID_DEFAULT)
if not condition then
player:sendCancelMessage(targetPlayer:getName() .." is not mutated")
return false
end
targetPlayer:removeCondition(CONDITION_MUTED, CONDITIONID_DEFAULT)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have unmute " .. targetPlayer:getName() ..".")
targetPlayer:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been unmute by " .. player:getName() ..".")
end
return false
end
Postado em outubro 22, 2020
meu amigo nao e isso eu precociso de um script se o player estiver com a storage 1234 ele nao poder falar certa palavra!
Postado em outubro 22, 2020
Você quer bloquear alguma palavra, tipo um palavrão ou algo do tipo???
Postado em outubro 22, 2020
50 minutos atrás, zeruella disse:e uma palava exemplo exura.
Ola preciso de um script simples que bloqueia o player falar uma palavra exemplo exura se ele estiver com a storage 1234.
Então você quer que ele use a magia só se tiver a storange 1234?