PlayerVisibility: Check if still ingame and alive.

This commit is contained in:
zaCade 2018-07-20 15:28:00 +02:00
parent 4f6f4b2dac
commit 73f2909a34

View File

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