From 73f2909a3446dec0e0e4d7ff9bc83df4617ad815 Mon Sep 17 00:00:00 2001 From: zaCade Date: Fri, 20 Jul 2018 15:28:00 +0200 Subject: [PATCH] PlayerVisibility: Check if still ingame and alive. --- PlayerVisibility/scripting/PlayerVisibility.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PlayerVisibility/scripting/PlayerVisibility.sp b/PlayerVisibility/scripting/PlayerVisibility.sp index ae6c3758..ec36bd27 100644 --- a/PlayerVisibility/scripting/PlayerVisibility.sp +++ b/PlayerVisibility/scripting/PlayerVisibility.sp @@ -229,6 +229,9 @@ public void Event_Spawn(Event event, const char[] name, bool dontBroadcast) public Action Timer_SpawnPost(Handle timer, int client) { + if(!IsClientInGame(client) || !IsPlayerAlive(client)) + return Plugin_Stop; + ToolsSetEntityAlpha(client, 255); g_Client_Alpha[client] = 255; g_Client_bEnabled[client] = true;