Tovar
Brak V
- Joined
- Jul 26, 2008
- Messages
- 347
- Reaction score
- 8
I was doing some tests in the server and when I send a broadcast " /b " it sends in the server log this.
the other player online send the msg too, don't understand why.
This is the script
the other player online send the msg too, don't understand why.
This is the script
Code:
function onSay(cid, words, param)
if not getPlayerFlagValue(cid, PlayerFlag_CanBroadcast) then
return true
end
local player = Player(cid)
print("> " .. player:getName() .. " broadcasted: \"" .. param .. "\".")
for _, tmpPlayer in ipairs(Game.getPlayers()) do
player:channelSay(tmpPlayer, TALKTYPE_BROADCAST, param, 0)
end
return false
end