[FilterScript] M's Headshot System
#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


Messages In This Thread
M's Headshot System - by Fancy - 02.08.2015, 19:15
Re: M's Headshot System - by HydraHumza - 03.08.2015, 08:41
Re: M's Headshot System - by maxQ - 03.08.2015, 12:23
Re: M's Headshot System - by RedLabel - 04.08.2015, 12:19
Re: M's Headshot System - by Dokins - 04.08.2015, 16:42
Re: M's Headshot System - by SpikY_ - 04.08.2015, 16:59
Respuesta: M's Headshot System - by INKISICION - 05.08.2015, 18:41
Re: M's Headshot System - by DarkLored - 05.08.2015, 19:06
Re: M's Headshot System - by Variable™ - 05.08.2015, 19:13
Re: M's Headshot System - by Fancy - 05.08.2015, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)