Headshot Problem
#1

Hey....
My friend gave me a server but in the server you can headshot with any weapon but I want to change it to only sniper headshot... how can I edit it??


Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) {
    if ((GetPlayerTeam(playerid) == NO_TEAM && GetPlayerTeam(issuerid) == NO_TEAM) || GetPlayerTeam(issuerid) != GetPlayerTeam(playerid)) {
	    if (bodypart == 9 && ! g_Player[playerid][playerHelmet]) {
	        SetPlayerHealth(playerid, 0.0);

			SendClientMessage(issuerid, COLOR_ORANGE, "Good job gangsta! You made a perfect headshot over that nigga! [+$3000 +1 Score]");
			GivePlayerMoney(issuerid, 3000);
			SetPlayerScore(issuerid, GetPlayerScore(issuerid) + 1);
			
	        return 0;
		}
	}
	return 1;
}
I need only sniper headshot and please how can I make that headshot meter too somethin' like textdraw...
Reply


Messages In This Thread
Headshot Problem - by HassanShah - 03.08.2016, 04:34
Re: Headshot Problem - by AndySedeyn - 03.08.2016, 05:08
Re: Headshot Problem - by HassanShah - 03.08.2016, 05:35
Re: Headshot Problem - by AndySedeyn - 03.08.2016, 05:38
Re: Headshot Problem - by HassanShah - 03.08.2016, 05:52

Forum Jump:


Users browsing this thread: 1 Guest(s)