AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Strip recived weapon (https://forums.alliedmods.net/showthread.php?t=120587)

benamo6 03-06-2010 11:27

Strip recived weapon
 
Is there a way to detect if a user receive a weapon?
So then I can strip it. I mean any weapon/nade/etc.

wrecked_ 03-06-2010 12:04

Re: Strip recived weapon
 
PHP Code:

RegisterHamHam_Item_Deploy"weapon_yourweapon""HFW_YourWeapon_Deploy_Post" // 1 makes it AFTER, use 1 to strip, 0 to stop deploy 


hleV 03-06-2010 12:07

Re: Strip recived weapon
 
PHP Code:

#include <amxmodx>
#include <hamsandwich>
 
public plugin_init()
        
RegisterHam(Ham_AddPlayerItem"player""fwdAddPlayerItem");
 
public 
fwdAddPlayerItem()
        return 
HAM_SUPERCEDE



All times are GMT -4. The time now is 08:45.

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