I saw one post on FP about this and it still leaves me super confused as to how to make the spectate team only for admin use.
Any help is greatly appreciated.
Make an IsAdmin() check once the player tries to change teams.
If he's not an admin, don't let him.
You could also go 1 step further and not even have the option available in the vgui, but I'm pretty sure you can change teams through a console command so you'd have to make the check once the player tries to change teams either way
Maybe it is because I have never fucked around with this kind of script that makes me so confused.... x.x
[editline]21st March 2017[/editline]
I am just staring at the shared.lua like "uh..............................WHAT?!"
[editline]21st March 2017[/editline]
I am sorry to be such a burden but I only know lua by the things I have worked on and not by concepts. I wish I had better material to get information on learning Lua.
Sorry, you need to Log In to post a reply to this thread.