PlayerVisibility: Check if still ingame and alive.
This commit is contained in:
parent
4f6f4b2dac
commit
73f2909a34
@ -229,6 +229,9 @@ public void Event_Spawn(Event event, const char[] name, bool dontBroadcast)
|
|||||||
|
|
||||||
public Action Timer_SpawnPost(Handle timer, int client)
|
public Action Timer_SpawnPost(Handle timer, int client)
|
||||||
{
|
{
|
||||||
|
if(!IsClientInGame(client) || !IsPlayerAlive(client))
|
||||||
|
return Plugin_Stop;
|
||||||
|
|
||||||
ToolsSetEntityAlpha(client, 255);
|
ToolsSetEntityAlpha(client, 255);
|
||||||
g_Client_Alpha[client] = 255;
|
g_Client_Alpha[client] = 255;
|
||||||
g_Client_bEnabled[client] = true;
|
g_Client_bEnabled[client] = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user