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

View Poll Results: Whats your prefered method for admin auth?
SteamID's 9 81.82%
Rcon Access Test 2 18.18%
Voters: 11. You may not vote on this poll

Ichthys' Admin Script v1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 05-16-2005 , 19:09   Ichthys' Admin Script v1.0
Reply With Quote #1

THIS HAS A NEW HOME link
Ichthys Admin Script v1.0


Overview: This script pack has two was of determining whether a player is admin or not.
  • 1) via a list of steamid's in admins.cfg
    2) Checks if a player has rcon access.
These both occur when a player connects. Then once their admin status has been established its saved as a userid specific variable which can be checked any event with a userid Like player_say.
Installation
1) Copy / Upload the ichy_admincheck folder to your events directory.
2) Add this to your autoexec.cfg (not server.cfg)
Code:
//Ichthys' Admin Check
//Make you you have eventscripts_subdirectory already defined before this.
eventscripts_register ichy_admincheck
  • SteamID Configuration:
    In the script packs server.cfg. Leave 'admincheck_type' as 'steamid'.
    Add your admins steamid's to the admins.cfg file. The last steamid must be "end". This marks the end of the admin list.
  • Rcon Configuration:
    In the script packs server.cfg. Change 'admincheck_type' to 'rcon' to use this method. Then change the admincheck_rcon and admincheck_exec in the rcon_server.cfg to the rcon and exec commands you use.

Usage:
In any event that has a userid. use the command 'admincheck'. This will check whether the user as authenticated as an admin when they connected. If they are an admin, the cvar 'admin' will return as '1'.
Example:
player_say.cfg
Code:
if (event_var(text) equalto admin) then admincheck
if (event_var(text) equalto admin) then if (server_var(admin) equalto 1) then es_msg #green Respect event_var(es_username) 's authority!
Attached Images
File Type: jpg ichy_admincheck_flow.jpg (38.4 KB, 385 views)
Attached Files
File Type: zip ichy_admincheck.v1.0.zip (3.3 KB, 440 views)
__________________
ichthys is offline
ajax
Veteran Member
Join Date: Jan 2005
Old 05-16-2005 , 23:22  
Reply With Quote #2

i have a feeling we'll be using this a lot.
ajax is offline
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 05-16-2005 , 23:58  
Reply With Quote #3

Well I hope it gets put to good use. I just didnt ever want to see anything like this again: lol

Quote:
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin1) then

es_copy adminid event_var(userid)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin1) then es

ma_cexec event_var(es_steamid) ma_saveloc
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin1) then es

exec server_var(camperblast.cfg)

if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin2) then

es_copy adminid event_var(userid)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin2) then es

ma_cexec event_var(es_steamid) ma_saveloc
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin2) then es

exec server_var(camperblast.cfg)

if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin3) then

es_copy adminid event_var(userid)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin3) then es

ma_cexec event_var(es_steamid) ma_saveloc
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin3) then es

exec server_var(camperblast.cfg)

if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin4) then

es_copy adminid event_var(userid)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin4) then

es_format adminname server_var(word1)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin4) then es

ma_cexec event_var(es_steamid) ma_saveloc
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin4) then es

exec server_var(camperblast.cfg)

if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin5) then

es_copy adminid event_var(userid)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin5) then es

ma_cexec event_var(es_steamid) ma_saveloc
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin5) then es

exec server_var(camperblast.cfg)

if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin6) then

es_copy adminid event_var(userid)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin6) then es

ma_cexec event_var(es_steamid) ma_saveloc
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin6) then es

exec server_var(camperblast.cfg)

if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin7) then

es_copy adminid event_var(userid)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin7) then es

ma_cexec event_var(es_steamid) ma_saveloc
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin7) then es

exec server_var(camperblast.cfg)

if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin then

es_copy adminid event_var(userid)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Adminthen es

ma_cexec event_var(es_steamid) ma_saveloc
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin then es

exec server_var(camperblast.cfg)

if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin9) then

es_copy adminid event_var(userid)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin9) then es

ma_cexec event_var(es_steamid) ma_saveloc
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin9) then es

exec server_var(camperblast.cfg)

if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin10) then

es_copy adminid event_var(userid)
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin10) then

es ma_cexec event_var(es_steamid) ma_saveloc
if (server_var(word1) equalto "camperblast") then if (event_var(es_steamid) equalto Admin10) then

es exec server_var(camperblast.cfg)
__________________
ichthys is offline
XE_ManUp
Senior Member
Join Date: Mar 2005
Location: Charlotte, NC
Old 05-17-2005 , 00:28  
Reply With Quote #4

ouch.

lol
XE_ManUp 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 09:25.


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