Raised This Month: $ Target: $400
 0% 

Taking temporary damage from nothing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hattfield
Junior Member
Join Date: Oct 2013
Old 11-09-2013 , 10:03   Taking temporary damage from nothing
Reply With Quote #1

Code:
public damage_taking(ent)
{
    if(is_valid_ent(ent))
    {
        for(new i = 0; i < get_maxplayers(); i++)
        {    
            if(is_user_alive(i) && entity_range(ent, i) <= 100.0)
            {
                ExecuteHam(Ham_TakeDamage, i, 0, i, 10, DMG_BULLET)
            }
        }
    }
}
It works for all players, but i want it works only for one player.
Thanks.
hattfield 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 23:22.


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