Skip to content

Commit

Permalink
Fix sm_help erroring out if invoked during the connection process (#723)
Browse files Browse the repository at this point in the history
* Fix "Exception reported: Client 12 is not in game"

* Fix

* Update adminhelp.sp
  • Loading branch information
komashchenko authored and KyleSanderson committed Jul 12, 2018
1 parent d0bf261 commit 52cdbb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/adminhelp.sp
Expand Up @@ -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;
Expand Down

0 comments on commit 52cdbb4

Please sign in to comment.