Setting weapons damage dealt.
#2

PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponid)
{
    if(
issuerid != INVALID_PLAYER_ID)
    {
        if(
weaponid == 31 && variable == 1//! variable
        
{
            new 
Foat:health;
            if(
GetPlayerHealth(playeridhealth))
            {
                
SetPlayerHealth(playeridhealth-amount);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Setting weapons damage dealt. - by Tamer - 06.01.2013, 07:02
Re: Setting weapons damage dealt. - by JM_Millers - 06.01.2013, 08:31
Re: Setting weapons damage dealt. - by JM_Millers - 06.01.2013, 08:37
Re: Setting weapons damage dealt. - by Konstantinos - 06.01.2013, 08:39

Forum Jump:


Users browsing this thread: 3 Guest(s)