Originally Posted by shustas
I thoutgh we can do this already with sm_vote from base plugins?
How? I haven't found it.
As far as I know we can't.
Originally Posted by exvel
It quite strange that you execute command from the client. RegAdminCmd will give you a strong protection from hackers if you specified an admin flag in it. Then just use "erverCommand(...)" that is commented inside of your plugin.
Yes but you can put many many other commands in the options and my plugin can't check if he's allowed to use these commands. If I say sm_avote can be used by admins who can kick but not ban, they could still use sm_ban because it's run as server command. If I run it as client command it has to be validated first if the client can use this command or not (problems are not hackers, problems are users without the corresponding flags to a specific command).
Not running it as client command would be insecure as hell (you even could run hostname or sv_password and stuff).