//Set solid and size after the entity has been spawned. set_pev(weaponbox, pev_solid, SOLID_TRIGGER) engfunc(EngFunc_SetSize, weaponbox, Float:{-50.0, -50.0, -50.0}, Float:{50.0, 50.0, 50.0})
return PLUGIN_HANDLED }
public FwTouchEnt(Ptd, Ptr) { new ClassName[33], weaponbox = Ptd, id = Ptr pev(Ptd, pev_classname, ClassName, sizeof(ClassName) - 1)
if(!equal(ClassName, gClassName)) { weaponbox = Ptr id = Ptd
Score[id]++ client_print(id, print_chat, "You picked up a Weapon Box and earned 1 score") }
EDIT: There isn't really a reason to call the spawn function for the entity in the first place I think, so just remove "dllfunc(DLLFunc_Spawn, weaponbox)".
And the reason is that the spawn function for CPointEntity sets the entity's solid to SOLID_NOT.