Raised This Month: $ Target: $400
 0% 

Suicide Bomb


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
vitorrossi
Senior Member
Join Date: Apr 2012
Location: NY, USA
Old 09-10-2012 , 23:22   Re: Suicide Bomb
Reply With Quote #6

I ended up doing it this way

PHP Code:
stock fm_radius_damage(id,Float:flOrigin[3])
    {
        new 
szClassname[33];
        static 
Ent
        Ent 
= -1

        
while((Ent engfunc(EngFunc_FindEntityInSphereEntflOriginget_pcvar_float(g_pSuicideRadius)))) 
        {
            
pev(Ent,pev_classname,szClassname,32);
            if(
equali(szClassname"player")){
                if(
cs_get_user_team(Ent) == CS_TEAM_T){
                    
ExecuteHam(Ham_TakeDamage,Ent,2,id,get_pcvar_float(g_pSuicideDamage),DMG_GENERIC DMG_ALWAYSGIB)
                }
            }
        }
    } 
vitorrossi 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 08:17.


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