Compare commits
2 Commits
d71a8b9138
...
80ed7a8738
Author | SHA1 | Date |
---|---|---|
Pascal Abresch | 80ed7a8738 | |
Pascal Abresch | 2841687bbe |
16
drawing.lua
16
drawing.lua
|
@ -8,10 +8,22 @@ return function(commands)
|
|||
function commands.drawing.texture.draw(clientID, args)
|
||||
assert(clients[clientID])
|
||||
for i, player in pairs(clients) do
|
||||
local payload = util.unit("poppyV001", clientID, "drawing", "texture", "draw") .. constants.US .. args
|
||||
server:sendto(payload, player.ip, player.port)
|
||||
if i ~= clientiD then
|
||||
local payload = util.unit("poppyV001", clientID, "drawing", "texture", "draw") .. constants.US .. args
|
||||
server:sendto(payload, player.ip, player.port)
|
||||
end
|
||||
end
|
||||
end
|
||||
function commands.drawing.texture.delete(clientID, args)
|
||||
assert(clients[clientID])
|
||||
for i, player in pairs(clients) do
|
||||
if i ~= clientiD then
|
||||
local payload = util.unit("poppyV001", clientID, "drawing", "texture", "delete") .. constants.US .. args
|
||||
server:sendto(payload, player.ip, player.port)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue