From 4d3a6b2850fcdef1c2b67fca1e6c21ab5ccee0ff Mon Sep 17 00:00:00 2001 From: Bukz Date: Thu, 23 Aug 2012 04:48:28 +0000 Subject: [PATCH] /ignoreteam, /ignoreenemy git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6857 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/admin.cfg | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/config/admin.cfg b/config/admin.cfg index 7756d322..d5bacbc2 100644 --- a/config/admin.cfg +++ b/config/admin.cfg @@ -8,7 +8,28 @@ const autoteam [ callvote 4 $arg1 ] const forceteam [ callvote 5 $arg1 ] const forceme [ forceteam (player1 cn) ] const ignoreall [ if $connected [ ingall = 1; loop ia 21 [ ignore $ia ]; echo (blue)NOTE: (white)All clients currently on the server were ignored. ] ] -const unignoreall [ if $connected [ ingall = 0; clearignored ]; echo (blue)NOTE: (white)All clients currently on the server were unignored. ] +const unignoreall [ if $connected [ ingall = 0; clearignored; echo (blue)NOTE: (white)All clients currently on the server were unignored. ] ] +const ignoreteam [ + if (curmodeattr team) [ + _arg1 = (toupper $arg1) + if (|| (strcmp $_arg1 CLA) (strcmp $_arg1 RVSF)) [ + loop itl 21 [ + if (isclient $itl) [ + if (= (player $itl team) (at "0 1" (strcmp $_arg1 RVSF))) [ ignore $itl ] + ] + ] + ] [ + if (checkrange $_arg1 0 1) [ + loop itl 21 [ + if (isclient $itl) [ + if (= (player $itl team) $_arg1) [ ignore $itl ] + ] + ] + ] + ] + ] [ echo (red)Error: (white)Not in a team mode. ] +] +const ignoreenemy [ ignoreteam (at "0 1" (! (player1 team))) ] const giveadmin [ callvote 6 $arg1 ] const map [ callvote 7 $arg1 $arg2 ] const recorddemo [ callvote 8 1 ]