Raised This Month: $ Target: $400
 0% 

func_button help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 11-02-2009 , 17:21   Re: func_button help
Reply With Quote #4

With +use

PHP Code:
// Plugin Init
RegisterHam(Ham_Use"func_button""fwdUse"0
PHP Code:
public fwdUse(entid)
{
    
// Checks if ents are reals players
    
if(!ent || id 32 && !is_user_alive(id))
    {
        return 
FMRES_IGNORED;
    }
    
    new 
target[33]
    
peventpev_targettargetsizeof target )
 
    if( 
equalitarget"buttonname" ))
    {
         
//Your Code
    
}
    return 
FMRES_IGNORED;

__________________
I am out of order!

Last edited by grimvh2; 11-03-2009 at 04:29.
grimvh2 is offline
 



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 17:35.


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