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; }