• 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!

[TFS 0.3.6pl1] How block sending msg to channel?

hellboy

Intermediate OT User
Joined
Apr 6, 2008
Messages
549
Solutions
6
Reaction score
124
Location
player:getTown()
Like in title, I tryed make this in two ways:

1.
PHP:
	<talkaction words="" channel="11" hide="yes" event="script"><![CDATA[
		
		function onSay(cid, words, param, channel)
			return true
		end
		]]></talkaction>

Info:
- it won't work
- none errors in console

2.
PHP:
	<talkaction channel="11" hide="yes" event="script"><![CDATA[
		
		function onSay(cid, words, param, channel)
			return true
		end
		]]></talkaction>

Info:
- it won't work
- errors in console:
Code:
[25/04/2010 12:37:32] > Loading DeathChannel.xml...[Error - TalkAction::configureEvent] No words for TalkAction.
[25/04/2010 12:37:32] [Warning - BaseEvents::loadFromXml] Cannot configure an event
[25/04/2010 12:37:32]  done.

It's possible without source edit?
 
Last edited:
for a channel that you want noone to be able to talk into, go into channels.xml and add (active="0") to the channel.

for a specific person you will have to add the onWriteToChannel function which can be found in the coding section.
 
Back
Top