#include "autocvars.qh"
#include "command/banning.qh"
#include "defs.qh"
#include "../common/constants.qh"
#include "../common/util.qh"
#include "autocvars.qh"
#include "command/banning.qh"
#include "defs.qh"
#include "../common/constants.qh"
#include "../common/util.qh"
LOG_INFO("Ban list syncing: accepted ban of ", ip, " by ", serverip, " at ", uri, ": ");
LOG_INFO(reason, "\n");
LOG_INFO("Ban list syncing: accepted ban of ", ip, " by ", serverip, " at ", uri, ": ");
LOG_INFO(reason, "\n");
- entity e;
- e = spawn();
- e.classname = "bansyncer";
- e.think = OnlineBanList_Think;
+ entity e = new(bansyncer);
+ setthink(e, OnlineBanList_Think);
- FOR_EACH_CLIENTSLOT(e)
- if (IS_REAL_CLIENT(e))
- if(Ban_IsClientBanned(e, i))
+ FOREACH_CLIENTSLOT(IS_REAL_CLIENT(it),
+ {
+ if(Ban_IsClientBanned(it, j))
reason = strcat(reason, ": affects ");
else
reason = strcat(reason, ", ");
reason = strcat(reason, ": affects ");
else
reason = strcat(reason, ", ");
- s = strcat(s, "^1NOTE:^7 banned client ", e.netaddress, "^7 has to go\n");
- dropclient(e);
+ s = strcat(s, "^1NOTE:^7 banned client ", it.netaddress, "^7 has to go\n");
+ dropclient(it);