SA-MP Forums Archive
[FilterScript] M's Headshot System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] M's Headshot System (/showthread.php?tid=584164)



M's Headshot System - Fancy - 02.08.2015

M's Headshot System

Features
Added with all weapons
Hit sound on head shot
Headshot messages

Download
Solidfiles


Dont Like With All Weapons?
This one have headshot with Sniper,country rifle,shotgun,deagle

Download
Solidfiles



Re: M's Headshot System - HydraHumza - 03.08.2015

Pastebin Please


Re: M's Headshot System - maxQ - 03.08.2015

Great one! bro.

But pastebin is missing??


Re: M's Headshot System - RedLabel - 04.08.2015

Pastebin Please. and Great job man.


Re: M's Headshot System - Dokins - 04.08.2015

Little bit strange that it's in an .exe format..


Re: M's Headshot System - SpikY_ - 04.08.2015

Quote:
Originally Posted by Dokins
Посмотреть сообщение
Little bit strange that it's in an .exe format..
No? its not


Respuesta: M's Headshot System - INKISICION - 05.08.2015

https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage

Good luck

PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    if(
issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
    
SetPlayerHealth(playerid0);
    
GameTextForPlayer(issuerid,"~r~Headshot",2000,3) && GameTextForPlayer(playerid,"~r~Headshot",2000,3);
    
PlayerPlaySound(playerid178020.00.00.0)  && PlayerPlaySound(issuerid178020.00.00.0);
    }
    return 
1;




Re: M's Headshot System - DarkLored - 05.08.2015

No reason to release such a "system" if it doesn't have any features except a gametext and a sound.


Re: M's Headshot System - Variable™ - 05.08.2015

You must do it like that.

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        SetPlayerHealth(playerid, 0);
        GameTextForPlayer(issuerid,"~r~Headshot",2000,3) && GameTextForPlayer(playerid,"~r~Headshot",2000,3);
        PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0)  && PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0);
        SetPlayerHealth(playerid, 0.0); 
    }
    return 1;
}
So when you headshoot someone with sniper he dies.


Re: M's Headshot System - Fancy - 05.08.2015

Quote:
Originally Posted by 1Deagle1
Посмотреть сообщение
You must do it like that.

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        SetPlayerHealth(playerid, 0);
        GameTextForPlayer(issuerid,"~r~Headshot",2000,3) && GameTextForPlayer(playerid,"~r~Headshot",2000,3);
        PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0)  && PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0);
        SetPlayerHealth(playerid, 0.0); 
    }
    return 1;
}
So when you headshoot someone with sniper he dies.
So tell me why i added
Код:
SetPlayerHealth(playerid, 0);
Dont be a noob -_-