Quote:
Originally Posted by SilentSoul
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { if(issuerid != INVALID_PLAYER_ID && weaponid == 34) //sniper { SetPlayerHealth(playerid, 0.0); //add here anim you want } if(issuerid != INVALID_PLAYER_ID && weaponid == 24) // deagle { SetPlayerHealth(playerid, 0.0); //add here anim you want } return 1; }
how to add anims ? https://sampwiki.blast.hk/wiki/ApplyAnimation
anims : https://sampwiki.blast.hk/wiki/Animations
if you want to add more weapons just copy
pawn Код:
if(issuerid != INVALID_PLAYER_ID && weaponid == 34) //and change weaponid == 34 to the weapon you want { SetPlayerHealth(playerid, 0.0); //add here anim you want }
weapons list : https://sampwiki.blast.hk/wiki/Weapons
|
Ok, But how can I fix that 2 errors? (Check my reply before yours)
also how many seconds he will be freeze?