Raised This Month: $ Target: $400
 0% 

No Weapon Pickup ... Not Working ..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-17-2010 , 19:09   Re: No Weapon Pickup ... Not Working ..
Reply With Quote #1

You should cache a players team when a team is joined; this will be more efficient than constantly calling get_user_team when this ham forward is fired (which is alot).

The reason it isn't working at all is your forward function name does not match the function name used to register.

RegisterHam( Ham_Touch, "weaponbox", "FwdHamPlayerWeaponTouch" );
RegisterHam( Ham_Touch, "armoury_entity", "FwdHamPlayerWeaponTouch" );

Try this:
PHP Code:
public FwdHamPlayerWeaponTouch( const iEntity, const id )
    return ( 
<= id <= g_iMaxPlayers ) ? HAM_SUPERCEDE HAM_IGNORED
__________________

Last edited by Bugsy; 05-17-2010 at 19:15.
Bugsy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:39.


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