• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua TFS 0.4 reference to channel

Hernest

New Member
Joined
Jul 26, 2010
Messages
152
Reaction score
3
Location
poland
@edit
Everything what I said before edit was wrong.

How can I let people to talk in specified channel only when storagevalue == 1?
I am trying to create something like mute system on specified channel, but I have no idea how to check something while talking for example on help channel with id 9?
 
first in loging
Code:
if getPlayerStorageValue(cid, xxxx) >= 1 then
doPlayerOpenChannel(cid, x)
end
and in channel.xml
Code:
<channel id="x" name="xxx" logged="yes" muted="xx" conditionId="3" conditionMessage="You must wait xx seconds between each message."/>
 
first in loging
Code:
if getPlayerStorageValue(cid, xxxx) >= 1 then
doPlayerOpenChannel(cid, x)
end
and in channel.xml
Code:
<channel id="x" name="xxx" logged="yes" muted="xx" conditionId="3" conditionMessage="You must wait xx seconds between each message."/>
Is there a chance to allow muted people to read chat?
 
Back
Top