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
This commit is contained in:
@@ -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 ] ]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user