• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

mute system in jail

Natroxxxx

New Member
Joined
Jul 18, 2013
Messages
18
Reaction score
1
may u write script that makes the players have mute until they get out of the jail?
 
How do they get in and outside the jail? Does this work with a script or do you teleport them with your god?
 
Add 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 player gets teleported inside the jail.
Code:
doAddCondition(cid, muted)

Remove the condition when the player gets teleported outside the jail.
Code:
if getCreatureCondition(cid, CONDITION_MUTED) then
     doRemoveCondition(cid, CONDITION_MUTED)
end
 
Last edited:
Add 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
well i willl see if it works
 
Back
Top