Trying to find if a user is in spectator only mode, I'm sure it's simple and I'm missing the obvious.
But yeah, tried to check "ttt_spectator_mode" convar, doesn't work
Try Player:GetObserverMode()
If ply:GetObserverMode() returns OBS_MODE_NONE then they aren't spectating.
Thanks, was so close to it earlier on wiki but somehow managed to miss it.
[editline]8th January 2014[/editline]
I'm guessing there's no way to find the value for the clients ttt_spectator_mode var?
[URL="http://wiki.garrysmod.com/page/Player/GetInfo"]Player:GetInfo()[/URL] and [URL="http://wiki.garrysmod.com/page/Player/GetInfoNum"]Player:GetInfoNum()[/URL]
TTT has IsSpec()
[QUOTE=Aj;43464561]TTT has IsSpec()[/QUOTE]
This. This is what you want.
Sorry, you need to Log In to post a reply to this thread.