Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2013-01-25 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
January 24, 2013, 07:06:19 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [BRANCH] Flag based DEV access.  (Read 72 times)
Remy Lebeau
Full Member
***
Posts: 172


View Profile
« on: December 28, 2012, 05:43:25 PM »

I've modified the playeraccess engine file to remove the hard coded developer access, and instead provide flag based access.

INSTALLATION
* Simply install this file over the distribution version.  You will need to ensure that you also replace it for future updates (after checking for any changes).

USAGE
* Set the cvar for which access flag gives dev access.  I recommend using one of the custom flags (so you can give devs access to war3admin menu without access to other admin commands) - default is 0 (off - no dev access granted)
- EG: war3_dev_access_flag "custom6"

* Give your devs access to that flag in your admin cfg.
- EG: (admins_simple.ini):
"STEAM_0:1:XXXXX"              "20:t"                     //Remy - The "t" here is the custom6 access flag which would mean dev.
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2169



View Profile WWW
« Reply #1 on: December 28, 2012, 09:00:37 PM »

set the flag inside if(event==InitPlayerVariables){

because there is no guarantee the dev flag will not be wiped by a clear event before the new InitPlayerVariables event
Logged

DarkEnergy
Remy Lebeau
Full Member
***
Posts: 172


View Profile
« Reply #2 on: December 28, 2012, 09:07:21 PM »

I tried it in there, however it seems that initplayervariables is called before the admin flags have been fully processed, so it can't test for the flag...
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2169



View Profile WWW
« Reply #3 on: December 28, 2012, 09:11:38 PM »

hm.... slow poke sourcemod
Logged

DarkEnergy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!