headshot system problem
#4

You had to use && instead || so it should be like this:
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart

    if(
issuerid != INVALID_PLAYER_ID
    { 
        if(
weaponid == 34 && bodypart == 9
        { 
            if(
GOD[playerid] == && GetPVarInt(playerid"aGod") == 0
            { 
                
GameTextForPlayer(issuerid,"~r~Headshot",2000,3) && GameTextForPlayer(playerid,"~r~Headshot",2000,3); 
                
PlayerPlaySound(playerid178020.00.00.0)  && PlayerPlaySound(issuerid178020.00.00.0); 
                
SetPlayerHealth(playerid0.0); 
            } 
        } 
    } 
    return 
1

Reply


Messages In This Thread
headshot system problem - by Bondz - 25.09.2016, 00:19
Re: headshot system problem - by UnGodly - 25.09.2016, 06:20
Re: headshot system problem - by DrVenomous - 25.09.2016, 06:26
Re: headshot system problem - by jlalt - 25.09.2016, 06:36
Re: headshot system problem - by UnGodly - 25.09.2016, 06:41
Re: headshot system problem - by jlalt - 25.09.2016, 06:45

Forum Jump:


Users browsing this thread: 1 Guest(s)