Raised This Month: $ Target: $400
 0% 

all ent affected by func_button


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Schwabba
Senior Member
Join Date: Apr 2008
Old 10-19-2010 , 03:48   Re: all ent affected by func_button
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <engine> 
PHP Code:
public plugin_init()
{
    
RegisterHam(Ham_Use"func_button""hamUseButton_Pre");

PHP Code:
public hamUseButton_Pre(buttonid)
{
    new 
szTarget[32]
    
pev(buttonpev_targetszTarget31)
    new 
ent = -1
    
while(ent find_ent_by_tname(entszTarget))
    {
        
// do something
    
}


Last edited by Schwabba; 10-19-2010 at 04:07.
Schwabba 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 10:22.


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