OnPlayerGiveDemage..
#2

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34) //weaponid == 34 = sniper rifle you can change that
    {
        //Small example if player shooted by sniper from first shoot he will die , you can edit that
        SetPlayerHealth(playerid, 0.0); //and here you can edit the damage you want
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerGiveDemage.. - by CesarLT - 08.10.2013, 16:27
Re: OnPlayerGiveDemage.. - by SilentSoul - 08.10.2013, 16:36
Re: OnPlayerGiveDemage.. - by -Prodigy- - 08.10.2013, 16:41
Re: OnPlayerGiveDemage.. - by ]Rafaellos[ - 08.10.2013, 16:47
Re: OnPlayerGiveDemage.. - by iFiras - 08.10.2013, 16:52
Re: OnPlayerGiveDemage.. - by CesarLT - 08.10.2013, 17:02
Re: OnPlayerGiveDemage.. - by iFiras - 08.10.2013, 17:05
Re: OnPlayerGiveDemage.. - by CesarLT - 08.10.2013, 17:07
Re: OnPlayerGiveDemage.. - by Konstantinos - 08.10.2013, 17:11
Re: OnPlayerGiveDemage.. - by iFiras - 08.10.2013, 17:11

Forum Jump:


Users browsing this thread: 2 Guest(s)