Raised This Month: $ Target: $400
 0% 

Make this only for HE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 03-22-2014 , 11:04   Make this only for HE
Reply With Quote #1

I have this code which is for all the nades:

PHP Code:
register_think("grenade""GrenadeThink"
PHP Code:
public GrenadeThink(iEnt
{
    if(
GAME_DGBALL <= g_iCurrentGame <= GAME_ZMBOMBS)
        return 
PLUGIN_HANDLED
        
    
return PLUGIN_CONTINUE

I want it only be for HE nade like my old code:

PHP Code:
public think_grenadeent 
{    
    if( 
GAME_DGBALL <= g_iCurrentGame <= GAME_ZMBOMBS 
    { 
        new 
model[32];
        
entity_get_string(entEV_SZ_modelmodel31)
        
        if(
equali(model,"models/w_dodgeball.mdl")) 
        {
            return 
PLUGIN_CONTINUE
            
        
}
            
        
// stop grenade from blowing up
        
return PLUGIN_HANDLED
        
    
}
    
    return 
PLUGIN_CONTINUE;

proffs 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 06:04.


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