Shoot someone with Deagle/Spas/Sniper will be Tazed
#6

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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)