AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block Weapon Pickup (https://forums.alliedmods.net/showthread.php?t=217768)

ironskillz1 06-07-2013 08:59

Block Weapon Pickup
 
Im trying to block weapon pickup. But they can pickup weapons
What am i doing wrong?

Code:

/* 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

Re: Block Weapon Pickup
 
register it with ham touch and return SUPERCEDE


All times are GMT -4. The time now is 16:28.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.