|
Senior Member
|
09-10-2021
, 19:27
Re: [CS:GO] mp_respawn_immunitytime for humans only?
|
#6
|
Ilusion9,
1) Test one
mp_respawn_immunitytime 360
and no plugin.
Everyone has immunity until they fire a weapon.
2) Test two.
mp_respawn_immunitytime 360
and this plugin
#include <sourcemod>
public void OnPluginStart()
{
HookEvent("player_spawn", Event_PlayerSpawn);
}
public void Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(event.GetInt("userid"));
if (!client)
return;
new String:cname[255];
GetClientName(client, cname, 255);
PrintToChatAll("Removing Immunity from %s", cname);
SetEntProp(client, Prop_Send, "m_bGunGameImmunity", false);
SetEntPropFloat(client, Prop_Send, "m_fImmuneToGunGameDamageTime", 0.0);
}
Everyone has immunity until they fire a weapon.
I would expect immunity to be removed from everyone but everyone still has immunity.
I know the player spawn is runing because of the messages are printed.
??
|
|
|
|