From 3c6acb927d52c2c038504d7b96418a4dd813a9ab Mon Sep 17 00:00:00 2001 From: Dogan Date: Mon, 10 Jun 2019 17:59:23 +0200 Subject: [PATCH] ZombieManager: first fix --- ZombieManager/scripting/ZombieManager.sp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ZombieManager/scripting/ZombieManager.sp b/ZombieManager/scripting/ZombieManager.sp index 71fc73f5..a3b87dc5 100644 --- a/ZombieManager/scripting/ZombieManager.sp +++ b/ZombieManager/scripting/ZombieManager.sp @@ -123,6 +123,18 @@ public Action Command_DisplayMotherzombies(int client, int args) public Action Command_Testround(int client, int args) { + if(GetClientTeam(client) == CS_TEAM_SPECTATOR) + { + ReplyToCommand(client, "[SM] Please join a Team first."); + return Plugin_Handled; + } + + if(!IsPlayerAlive(client)) + { + ReplyToCommand(client, "[SM] Please respawn yourself first."); + return Plugin_Handled; + } + ToggleTestRound(client); return Plugin_Handled; }