I would do:
Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
public plugin_init()
{
register_touch("worldspawn", "weaponbox", "CWeaponBoxTouch")
}
public CWeaponBoxTouch(const TouchedEnt, const ToucherEnt)
{
if(pev_valid(ToucherEnt))
{
set_pev(ToucherEnt, pev_nextthink, get_gametime() + 0.1)
}
}
Because, for me it makes more sense to hook Touch() and not Think().
__________________