PHP Code:
#include <sourcemod>
#include <sdktools>
public void OnPluginStart()
{
HookEvent("player_spawn", Event_PlayerSpawn);
}
public void Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
{
if (event.GetInt("teamnum") < CS_TEAM_T)
{
return;
}
int client = GetClientOfUserId(event.GetInt("userid"));
if (!client || !IsFakeClient(client))
{
return;
}
SetEntPropFloat(client, Prop_Send, "m_bGunGameImmunity", 0.0);
}
__________________