Quote:
Originally Posted by CesarLT
Use OnPlayerGiveDemage and OnPlayerTakeDemage to create that.
SetTimerEx, for the "freeze" to pass, and SetPlayerControllable to freeze the player.
Edit: For the fall down part use animations on OnPlayerTakeDemage..
Good luck. 
|
Where should I put this? I mean what Line.
Quote:
Originally Posted by SilentSoul
ok sorry for wrong understand.
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { if(issuerid != INVALID_PLAYER_ID && weaponid == 34) { // This for sniper rifle when someone use it and shoot the shooted player will die from first shoot SetPlayerHealth(playerid, 0.0); } return 1; }
Add this in any where in your script
https://sampwiki.blast.hk/wiki/Weapons
|
Same question to you