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

Lua doChannelMessage on TFS 0.3.6

Derex

New Member
Joined
Oct 10, 2010
Messages
24
Reaction score
2
I've problem with using "doChannelMessage" on TFS 0.3.6.
Code:
doChannelMessage(7, TALKTYPE_CHANNEL_O, "Hey World")
Chanel id = 7.
Should it working on tfs 0.3.6 and I'm making something wrong or I should make it on other way? Can sb help me with it?
 
I want to send Channel Message to all players.
Should I use this part?
Code:
 for _, pid in ipairs(getPlayersOnline()) do
             doPlayerSendChannelMessage(pid, '', 'text', TALKTYPE_CHANNEL_O, CHANNEL_TRADE)
end
 
Back
Top