SA-MP Forums Archive
When your leg get shot - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: When your leg get shot (/showthread.php?tid=511343)



When your leg get shot - Trynda - 05.05.2014

When your leg get shot by sniper, then there should be a animation that im shocked from bullet, how?


Re: When your leg get shot - awsomedude - 05.05.2014

Try this:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && (bodypart == 8 || bodypart == 7))
    {
        //Apply animation here
    }
    return 1;
}



Re: When your leg get shot - Trynda - 05.05.2014

Quote:
Originally Posted by awsomedude
Посмотреть сообщение
Try this:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && (bodypart == 8 || bodypart == 7))
    {
        //Apply animation here
    }
    return 1;
}
thanks dude

can you suggest good leg hit animation on rp server?