Raised This Month: $ Target: $400
 0% 

adding score when pressing func_button


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-01-2009 , 07:36   Re: adding score when pressing func_button
Reply With Quote #2

PHP Code:
#include <hamsandwich>

public plugin_init()
    
RegisterHam(Ham_Use"func_button",    "fwdUseButton");

public 
fwdUseButtonentididactivatoruse_typeFloat:flValue ) {
    if( !
is_user_alive(id) || (use_type != 2) || (flValue != 1.0) )
        return 
HAM_IGNORED;
    
    
// player pressed func_button
    
    
return HAM_IGNORED;

__________________
xPaw 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 16:52.


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