Hey everybody,
I am trying to strip the players of all weapons whenever they pick up one. I use the following code. However, it does not seem to work with grenades, bugs and satchels. It's really weird, try for yourself:
PHP Code:
#include <amxmodx>
#include <fun>
new PLUGIN[]="test123"
new AUTHOR[]="gonr"
new VERSION[]="1.00"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("WeapPickup", "WepPkd", "be")
}
public WepPkd(id)
{
set_task(0.1, "WeaponPicked", id)
return PLUGIN_CONTINUE
}
public WeaponPicked(id)
{
strip_user_weapons(id)
client_print(id, print_chat, "Picked up")
return PLUGIN_CONTINUE
}
I would appreciate any help from you guys
Thanks!