View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 08-28-2021 , 05:12   Re: [CS:GO] mp_respawn_immunitytime for humans only?
Reply With Quote #3

PHP Code:

#include <sourcemod>
#include <sdktools>

public void OnPluginStart()
{
    
HookEvent("player_spawn"Event_PlayerSpawn);
}

public 
void Event_PlayerSpawn(Event event, const char[] namebool dontBroadcast
{
    if (
event.GetInt("teamnum") < CS_TEAM_T)
    {
        return;
    }
    
    
int client GetClientOfUserId(event.GetInt("userid"));
    if (!
client || !IsFakeClient(client))
    {
        return;
    }
    
    
SetEntPropFloat(clientProp_Send"m_bGunGameImmunity"0.0);

__________________
Ilusion9 is offline