[FilterScript] Easy System Headshot
#1

I was bored, I made a simple eh headshot system.

WEAPONS:
Sniper Rifle
Rifle


CODE

pawn Код:
#include <a_samp>

new name[MAX_PLAYERS];

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33) && bodypart == 9)
    {
    SetPlayerHealth(playerid, 0.0);
    new stringa[80];
    GetPlayerName(playerid, name, sizeof(name));
    format(stringa, sizeof(stringa), "[ ! ]:[%s] He was killed by a shot to the head", name);
    SendClientMessageToAll(0xFFFF00FF,stringa);
    }
    return 1;
}

IMAGES
I have no pictures because I could not test it with anyone. Later add images.
It tests if anyone who uploads a picture please.
Excuse my bad English

bye and have a good day

EDIT:bug fixed
Reply


Messages In This Thread
Easy System Headshot - by lucotaku1 - 11.07.2014, 03:21
Re: Easy System Headshot - by Inverse - 11.07.2014, 10:25
Re: Easy System Headshot - by rockhopper - 11.07.2014, 13:18
Re: Easy System Headshot - by HitterHitman - 11.07.2014, 13:30
Re: Easy System Headshot - by Battlezone - 11.07.2014, 13:30
Re: Easy System Headshot - by rockhopper - 11.07.2014, 13:32
Re: Easy System Headshot - by Inverse - 12.07.2014, 22:26
Re: Easy System Headshot - by FahadKing07 - 12.07.2014, 23:23
Re: Easy System Headshot - by Rabea - 18.08.2014, 22:06
Re: Easy System Headshot - by DovFlaminggo - 25.08.2014, 14:08
Respuesta: Easy System Headshot - by Alej - 25.08.2014, 14:09
Re: Easy System Headshot - by Ryz - 11.09.2014, 12:43
Re: Easy System Headshot - by xMx4LiFe - 17.10.2014, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)