Headshot
#6

PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    if(
issuerid != INVALID_PLAYER_ID && (weaponid == 24 || weaponid == 34) && bodypart == 9)
    {
             new 
string[100], headshota[24], pname[24];
             
GetPlayerName(playeridheadshotasizeof(headshota));
             
GetPlayerName(issueridpnamesizeof(pname));
             
format(stringsizeof(string), "%s(%i) was shoot to the head by %s(%i)"headshota,playeridpname);
             
SendClientMessageToAll(COLOR_SILVER,string);
             
GameTextForPlayer(issuerid,"~r~Headshot",2000,3);
             
PlayerPlaySound(issuerid178020.00.00.0);
             
GameTextForPlayer(playerid,"~r~Headshot",2000,3);
             
PlayerPlaySound(playerid178020.00.00.0);
             
SetPlayerHealth(playerid0.0);
    }
    return 
1;

try this maybe gonna work
Reply


Messages In This Thread
Headshot - by SubGames - 26.05.2018, 17:25
Re: Headshot - by Dayrion - 26.05.2018, 17:41
Re: Headshot - by RxErT - 26.05.2018, 19:20
Re: Headshot - by BlackLineCnR - 26.05.2018, 20:19
Re: Headshot - by Cell_ - 26.05.2018, 20:32
Re: Headshot - by CaptainBoi - 27.05.2018, 03:48

Forum Jump:


Users browsing this thread: 1 Guest(s)