mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#NET
This commit is contained in:
parent
93d61a99fa
commit
c1ab696774
@ -246,6 +246,15 @@ function NET:ForceSlot(Client,SideID,SlotID)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Force a client back to spectators.
|
||||||
|
-- @param #NET self
|
||||||
|
-- @param Wrapper.Client#CLIENT Client The client
|
||||||
|
-- @return #boolean Succes
|
||||||
|
function NET:ReturnToSpectators(Client)
|
||||||
|
local outcome = self:ForceSlot(Client,0)
|
||||||
|
return outcome
|
||||||
|
end
|
||||||
|
|
||||||
--- Converts a lua value to a JSON string.
|
--- Converts a lua value to a JSON string.
|
||||||
-- @param #string Lua Anything lua
|
-- @param #string Lua Anything lua
|
||||||
-- @return #table Json
|
-- @return #table Json
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user