Headshot not working!
#1

Код:
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);
    }
I added this headshot code into my server but while playing in game, whenever i hit on someones head, it doesnt work :/ and ordinary health is lost by the player!
Reply


Messages In This Thread
Headshot not working! - by BlackLineCnR - 20.05.2018, 13:16
Re: Headshot not working! - by TadePoleMG - 20.05.2018, 13:36
Re: Headshot not working! - by BlackLineCnR - 20.05.2018, 13:38
Re: Headshot not working! - by Lokii - 20.05.2018, 13:47
Re: Headshot not working! - by BlackLineCnR - 20.05.2018, 13:49
Re: Headshot not working! - by TadePoleMG - 20.05.2018, 13:53
Re: Headshot not working! - by BlackLineCnR - 20.05.2018, 13:55
Re: Headshot not working! - by Lokii - 20.05.2018, 13:55
Re: Headshot not working! - by TadePoleMG - 20.05.2018, 13:58
Re: Headshot not working! - by TadePoleMG - 20.05.2018, 14:04

Forum Jump:


Users browsing this thread: 2 Guest(s)