• Is there a way to network the use of Voice Chat to the server?
    4 replies, posted
I've been trying to look into informing the server that a player is using voice chat, to log it in a leader boards system taken from Coderhire. The most effective functions for the job I have found are GM:PlayerStartVoice and GM:PlayerEndVoice. These are both Client side hooks. Is there a way I can use these to inform the server when they trigger, and who they trigger for?
You can network it. Something like this, but you wouldn't need to Write* or Read*. The second argument for net.Receive on the SERVER is Player, so you'd know which player sent it. [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/networking/networking_booleans.lua[/url]
[QUOTE=Acecool;44396063]You can network it. Something like this, but you wouldn't need to Write* or Read*. The second argument for net.Receive on the SERVER is Player, so you'd know which player sent it. [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/networking/networking_booleans.lua[/url][/QUOTE] There is a typo in that document "// False is received as 0 is we do not tobool( ) it." should be if instead of is, Sorry, have an OCD for this stuff.
[QUOTE=AnonTakesOver;44396874]There is a typo in that document "// False is received as 0 is we do not tobool( ) it." should be if instead of is, Sorry, have an OCD for this stuff.[/QUOTE] Thanks, it's fixed now :-)
Danke Ace... I think this will help.
Sorry, you need to Log In to post a reply to this thread.