From 76811b7b845b29cfb184ab33c8d23950bacb2f56 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Tue, 19 Aug 2014 10:08:25 +0200 Subject: [PATCH] Allow get_players() as well. --- amxmodx/amxmodx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index c473ec18..367a6c06 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -2261,7 +2261,7 @@ static cell AMX_NATIVE_CALL get_players(AMX *amx, cell *params) /* 4 param */ for (int i = 1; i <= gpGlobals->maxClients; ++i) { CPlayer* pPlayer = GET_PLAYER_POINTER_I(i); - if (pPlayer->ingame) + if (pPlayer->initialized) { if (pPlayer->IsAlive() ? (flags & 2) : (flags & 1)) continue;