Quote:
Originally Posted by Nextra
|
The weapons aren't given on player spawn, they are given when you go to a certain area (described in 1st post) in the map and are not on the ground. My plugin uses this to block weapons on ground
PHP Code:
//plugin_init
/* ************ Weapon pickup block - By Exolent ********** */
RegisterHam( Ham_Touch, "armoury_entity", "FwdHamPlayerPickup" );
RegisterHam( Ham_Touch, "weaponbox", "FwdHamPlayerPickup" );
/* ******************************* Block weapon pickup - By Exolent ******************************** */
public FwdHamPlayerPickup( iEntity, id )
{
return ( 1 <= id <= g_iMaxPlayers && is_user_alive(id) ) ? HAM_SUPERCEDE : HAM_IGNORED
}
So I tried this
PHP Code:
//plugin_init
RegisterHam( Ham_Touch, "game_player_equip", "gm_pl_eq" );
public gm_pl_eq( iEntity, id )
{
return ( 1 <= id <= g_iMaxPlayers && is_user_alive(id) ) ? HAM_SUPERCEDE : HAM_IGNORED
}
But it doesn't work, weapons are still equipped in said spots.