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

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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)