From d9a0f49ca0655b71621c2360dbb7d61542bcd9fa Mon Sep 17 00:00:00 2001 From: sireus Date: Wed, 5 Dec 2012 16:59:47 +0000 Subject: [PATCH] * unignoreall fix * use curplayers instead of hardcoded limit git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6948 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/scripts.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/scripts.cfg b/config/scripts.cfg index abcdbced..c84b4053 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -373,8 +373,8 @@ const convertcase [ ] ingall = 0 -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 ignoreall [ if $connected [ ingall = 1; loop ia (curplayers) [ ignore $ia ]; echo (blue)NOTE: (white)All clients currently on the server were ignored. ] ] +const unignoreall [ if $connected [ ingall = 0; clearignored -1; echo (blue)NOTE: (white)All clients currently on the server were unignored. ] ] const ignoreteam [ if (curmodeattr team) [ _arg1 = (toupper $arg1)