How can I increase weapons damage?
#10

Hi, the include is working ok. You need another player to test it.
pawn Код:
public OnPlayerShootPlayer(shooter,target,damage)
{
    if(GetPlayerWeapon(shooter)== 22)
    {
        new Float:health;
        GetPlayerHealth(target,health);
        if(health-30 > 0) // if health is set 0 or below onplayerdeath will be called for suicide
        {
             SetPlayerHealth(target,health-30);
             SendClientMessage(target, cinza, "Hurt!");
        }
    }
    return 1;
}
Reply


Messages In This Thread
How can I increase weapons damage? - by blackwave - 07.12.2010, 16:48
Re: How can I increase weapons damage? - by Bessensap - 07.12.2010, 16:51
Re: How can I increase weapons damage? - by blackwave - 07.12.2010, 17:00
Re: How can I increase weapons damage? - by The_Gangstas - 07.12.2010, 17:05
Re: How can I increase weapons damage? - by blackwave - 07.12.2010, 17:37
Re: How can I increase weapons damage? - by blackwave - 07.12.2010, 19:44
Re: How can I increase weapons damage? - by Bessensap - 09.12.2010, 12:52
Re: How can I increase weapons damage? - by blackwave - 09.12.2010, 14:47
Re: How can I increase weapons damage? - by Biesmen - 09.12.2010, 14:53
Re: How can I increase weapons damage? - by wups - 09.12.2010, 14:56

Forum Jump:


Users browsing this thread: 6 Guest(s)