[FilterScript] M's Headshot System
#1

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
Reply
#2

Pastebin Please
Reply
#3

Great one! bro.

But pastebin is missing??
Reply
#4

Pastebin Please. and Great job man.
Reply
#5

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

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

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;

Reply
#8

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

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.
Reply
#10

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 -_-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)