AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Why doesn't Plugin_Handled block sm_cvar? (https://forums.alliedmods.net/showthread.php?t=187515)

jakeisajerk 06-14-2012 09:33

Why doesn't Plugin_Handled block sm_cvar?
 
I have been trying to get an old plugin working. It is meant to prevent people with the ability to read cvars from stealing the rcon password. A function to check the command is called when someone does sm_rcon. This is done with AddCommandListener. The function gets tripped when someone tries to get the password and returns "Plugin_Handled". For some reason this doesn't stop the execution of the command and the rcon password is still delivered to the client. Is there an alternative way of blocking commands?

Thanks.

Exolent[jNr] 06-14-2012 09:42

Re: Why doesn't Plugin_Handled block sm_cvar?
 
Post in the SourceMod section.

jakeisajerk 06-14-2012 09:46

Re: Why doesn't Plugin_Handled block sm_cvar?
 
Sorry. Noobish mistake.


All times are GMT -4. The time now is 06:07.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.