From 3b2ca9405a18b08b7b1a4b0fa081604783d24ee8 Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Fri, 24 Mar 2023 01:20:43 +0100 Subject: [PATCH] chat_commands 1.0.1 Added IsMultiplayerMode utils function --- chat_commands/chat_commands.gsc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chat_commands/chat_commands.gsc b/chat_commands/chat_commands.gsc index f094bee..15e8643 100644 --- a/chat_commands/chat_commands.gsc +++ b/chat_commands/chat_commands.gsc @@ -535,4 +535,9 @@ DebugIsOn() PermissionIsEnabled() { return GetDvarInt("cc_permission_enabled"); +} + +IsMultiplayerMode() +{ + return !IsDefined(level.zombiemode) || !level.zombiemode; } \ No newline at end of file