Raised This Month: $ Target: $400
 0% 

Ham_Touch,can pick up only:m3,elite and other.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-21-2008 , 11:22   Ham_Touch,can pick up only:m3,elite and other.
Reply With Quote #1

This is noweapon pickup from the ground and dropped weapons code.
How to do,player can pick up example: only m3,elite,m4a1,mac10.???Other weapons can not be picked up




PHP Code:
 new amx_noweaponpickup 
PHP Code:
plugin init
                amx_noweaponpickup 
register_cvar("amx_noweaponpickup""1")
                
RegisterHam(Ham_Touch"weaponbox""hamTouch")
                
RegisterHam(Ham_Touch"armoury_entity""hamTouch")
                
RegisterHam(Ham_Touch"weapon_shield""hamTouch")
                
RegisterHam(Ham_Touch"grenade""hamTouch"
PHP Code:
public hamTouch(entid)
{
        if (!
get_pcvar_num(amx_noweaponpickup) || !is_user_connected(id) || !is_user_alive(id))
                return 
HAM_IGNORED
 
        
return HAM_SUPERCEDE

__________________
xbatista is offline
Send a message via Skype™ to xbatista
 



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 09:06.


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