From 1c21ef6531d1c3cef9dd7f08c77cf3a861b39fc2 Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Tue, 2 Nov 2010 12:15:16 +0000 Subject: [PATCH] Added a handy, simplistic script. Also adding a commit message as proof of ownership. Hello l1qu1dw3b, I'm RandumKiwi. git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5799 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/scripts.cfg | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/scripts.cfg b/config/scripts.cfg index a83d3f31..d2f0a28f 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -237,3 +237,16 @@ add2alias = [ addOnLoadOnce = [ add2alias mapstartonce $arg1 ] addOnLoadAlways = [ add2alias mapstartalways $arg1 ] addOnQuit = [ add2alias onQuit $arg1 ] + +// Simple claim-admin script for one single-server. +// Fill in the 3 aliases below, and uncomment the below line to activate. +// bind F3 "customclaimadminscript" +alias _CAS_serverip "IP ADDRESS" +alias _CAS_serverpass "PASSWORD" +alias _CAS_servername "SERVER NAME" +alias customclaimadminscript [ if (strcmp (curserver 1) $_CAS_serverip) [ + if (= (currole) 0) [ setadmin 1 $_CAS_serverpass ] [ setadmin 0; echo "you relinquished admin status" ] ] [ + alias _CAS_erroroutput (concat " 3ERROR: 5you're not connected to" $_CAS_servername "servers"); echo $_CAS_erroroutput ] ] + + +