05.05.2014, 03:27
When your leg get shot by sniper, then there should be a animation that im shocked from bullet, how?
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && (bodypart == 8 || bodypart == 7))
{
//Apply animation here
}
return 1;
}
Try this:
pawn Код:
|