Raised This Month: $ Target: $400
 0% 

Code Explanation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-17-2012 , 04:27   Re: Code Explanation
Reply With Quote #6

Can I user it that way?
I want to disable pickups only for those who uses "/giveme" command.

PHP Code:
public plugin_init()
{
        
register_clcmd("say /giveme""cmd_GiveWeapon")
        
RegisterHamHam_Touch"weaponbox""ham_TouchWeapon" )   //all dropped weapons
    
RegisterHamHam_Touch"armoury_entity""ham_TouchWeapon" )    //all default map weapons
    
RegisterHamHam_Touch"weapon_shield""ham_TouchWeapon" )    //all shields
    
}

public 
cmd_GiveWeapon(id)
{

public 
ham_TouchWeapon/* iEnt, id */ )
{
    return 
HAM_SUPERCEDE;
}

__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
 



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


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