Just you can simply done with:
Code:
SetEntProp(client, Prop_Send, "m_bHasHeavyArmor", 0);
Quote:
Originally Posted by imburnt916
I am trying to remove Heavy Armor on round end, since some of the things brought along with heavy armor stay with it the next round if a player doesnt die.
|
Code:
public void OnPluginStart()
{
HookEvent("round_end", OnRoundEndPost, EventHookMode_Post);
}
public void OnRoundEndPost(Event event, const char[] name, bool dontBroadcast)
{
for (int i=1; i<=MaxClients; i++) {
if (!IsClientInGame(i))
continue;
SetEntProp(i, Prop_Send, "m_bHasHeavyArmor", 0);
}
}