johnsamir
Advanced OT User
Hello I'm using nekiro tfs 1.3 and brodcast message is not working.My account gm is type 5 and the player has group id 3, others commands like give level works, but brodcast doesn't, the message does not appears at all in default channel nor in the game window either. i have tested with otcv8, mehah otclient, and edubart otclient in none on them is being displayed the message and i don't have errors in console when using it
this is the function
this is the function
Lua:
function onSay(player, words, param)
if not player:hasFlag(PlayerFlag_CanBroadcast) then
return true
end
print("> " .. player:getName() .. " broadcasted: \"" .. param .. "\".")
for _, targetPlayer in ipairs(Game.getPlayers()) do
targetPlayer:sendPrivateMessage(player, param, TALKTYPE_BROADCAST)
end
return false
end