From 52cdbb4fc164d9dd4d3ad865cf64c053aa66b1a3 Mon Sep 17 00:00:00 2001 From: komashchenko Date: Thu, 12 Jul 2018 21:18:57 +0300 Subject: [PATCH] Fix sm_help erroring out if invoked during the connection process (#723) * Fix "Exception reported: Client 12 is not in game" * Fix * Update adminhelp.sp --- plugins/adminhelp.sp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/adminhelp.sp b/plugins/adminhelp.sp index ab061747..95bc185e 100644 --- a/plugins/adminhelp.sp +++ b/plugins/adminhelp.sp @@ -58,6 +58,11 @@ public void OnPluginStart() public Action HelpCmd(int client, int args) { + if (client && !IsClientInGame(client)) + { + return Plugin_Handled; + } + char arg[64], CmdName[20]; int PageNum = 1; bool DoSearch;