PDA

View Full Version : Block Weapon Pickup


ironskillz1
06-07-2013, 08:59
Im trying to block weapon pickup. But they can pickup weapons
What am i doing wrong?

/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <engine>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "SnusMumrikeN (ironskillz1)"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

//Block weapon pickup
register_touch("weaponbox", "player", "BlockPickup");
register_touch("armoury_entity", "player", "BlockPickup");
register_touch("weapon_shield", "player", "BlockPickup");
}
public BlockPickup(Entity)
return PLUGIN_HANDLED

TheDS1337
06-07-2013, 09:05
register it with ham touch and return SUPERCEDE