From 73a20de2ff90a8dfd9659ca73dee9d67f27b7e4e Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Sun, 25 May 2008 03:26:31 +0000 Subject: [PATCH] Added server check to clientprefs --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402184 --- plugins/clientprefs.sp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/clientprefs.sp b/plugins/clientprefs.sp index 27bcc81e..4e60ed9c 100644 --- a/plugins/clientprefs.sp +++ b/plugins/clientprefs.sp @@ -89,6 +89,12 @@ public Action:Command_Cookie(client, args) return Plugin_Handled; } + if (client == 0) + { + PrintToServer("%T", "No Console", LANG_SERVER); + return Plugin_Handled; + } + decl String:name[30]; name[0] = '\0'; GetCmdArg(1, name, sizeof(name));