From f6db784f386ac85d827585689f6933a273cb5702 Mon Sep 17 00:00:00 2001 From: Damen Date: Thu, 16 May 2019 22:05:41 -0400 Subject: [PATCH] add gang iter count for testing --- gamemodes/irresistible/cnr/features/gangs/gangs.pwn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/gangs/gangs.pwn b/gamemodes/irresistible/cnr/features/gangs/gangs.pwn index b2653bb..067e070 100644 --- a/gamemodes/irresistible/cnr/features/gangs/gangs.pwn +++ b/gamemodes/irresistible/cnr/features/gangs/gangs.pwn @@ -1176,3 +1176,10 @@ stock GetOnlineGangMembers( gangid, &afk_members = 0 ) } return iPlayers; } + +CMD:gangiter( playerid, params[] ) +{ + if ( !IsPlayerAdmin( playerid ) ) return false; + SendClientMessageFormatted( playerid, -1, "Gang Iter Count: %i", Iter_Count( gangs ) ); + return true; +} \ No newline at end of file