Spectator Block
Hi, this code is supposed to prevent other than admins to join spectatormode... but it isnt working as it should, care to help me out?
Code:
when using the above code a non-admin player can still join spectatormode through menus ("m" then "6"). But if the player uses command "jointeam 6" through console he gets the message "* You can not become spectator!" Code:
when using this code (just added register_clcmd("menuselect 6", "admin_check") ) you cannot as a player join spectatormode through menus or through "jointeam 6" in console, which is good.... But as you see the problem is when you use menuselect 6 in a other situation (for example buying AWM through menus) and not being able to perform the command. You can still buy awm's through buyscripts, but as you can guess it wont be so funny to get "* You can not become spectator!" in every situation you use menuselect 6, and not getting the command executed. |
you should use this code that I found in olo's old autoteam select plugin and that I use in my autoassign plugin
Code:
to detect the team select menu |
| All times are GMT -4. The time now is 14:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.