PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>
public void OnEntityCreated(int entity, const char[] classname)
{
if(StrEqual(classname, "game_player_equip"))
{
SDKHook(entity, SDKHook_Spawn, Spawn_GamePlayerEquip);
}
}
public Action Spawn_GamePlayerEquip(int entity)
{
if(!(GetEntProp(entity, Prop_Data, "m_spawnflags") & 1))
{
SetEntProp(entity, Prop_Data, "m_spawnflags", 0); // if you set to 1, this entity will not be called on round start. 0 - all players receive weapons on round start from this entity, but no weapon will pe stripped (if they have a weapon, will be dropped on the ground).
}
}
Flags:
1 : Use Only
2 : Strip All Weapons First
4 : Only Strip Same Weapon Type
Be more explicit what do you want from this entity. Only to remove the weapon strip?