Yes i teleport them.i say !jail (name) then he get jailed but he can talk i need a mute scriptHow do they get in and outside the jail? Does this work with a script or do you teleport them with your god?
local muted = createConditionObject(CONDITION_MUTED)
setConditionParam(muted, CONDITION_PARAM_TICKS, 10000000)
doAddCondition(cid, muted)
if getCreatureCondition(cid, CONDITION_MUTED) then
doRemoveCondition(cid, CONDITION_MUTED)
end
well i willl see if it worksAdd a muted condition in the !jail talkaction script (at the top above function onSay).
Code:local muted = createConditionObject(CONDITION_MUTED) setConditionParam(muted, CONDITION_PARAM_TICKS, 10000000)
Then add the condition when the players gets teleported inside the jail.
Code:doAddCondition(cid, muted)
Remove the condition when the players gets teleported outside the jail.
Code:if getCreatureCondition(cid, CONDITION_MUTED) then doRemoveCondition(cid, CONDITION_MUTED) end