Raised This Month: $51 Target: $400
 12% 

Options on how to enable plugin for non-admins?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 09-23-2010 , 16:11   Options on how to enable plugin for non-admins?
Reply With Quote #1

(hope this is the right place)

Hello. Unfortunately I don't have any coding experience of this nature, but I'm trying since I think I'm looking for edits in the SP file, then a recompile, or some other suggestion. Allow me to explain.

A plugin is set for access only by console and admins via flag. The plugin cannot be used by non-admins, whereby I'd like that option (e.g., public access like RTV). I've requested this feature, but it's not feasible at the moment, so I thought I'd give it a try myself.


I've been searching around for similar setups and just trying to generally learn how the access is checked, etc.


The check process is, if I understand correctly:

if client is console || client has flag || client is root


I think the issue is: client has flag (> 0). Is it simply changing that to (== 0) ?


Or is a better approach to use Admin Overrides, which I've not had to ever use?


Another option of access I thought might be useful is by Class (i.e., TF2 Medic). Like use a cvar to choose what class, then only that Class my access the commands.


I'm hoping this is simple for me to handle and without pushing on the author if its just me that desires it.

Thanks for any input on starting my trail of bread crumbs. I'm not sure how to search for this, so please provide any other links for me to consume.
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
MjrNuT is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 09-24-2010 , 05:31   Re: Options on how to enable plugin for non-admins?
Reply With Quote #2

The simplest thing is to find all RegServerCmd and RegAdminCmd and replace to RegConsoleCmd.
FaTony is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:22.


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