07.06.2018, 01:53
Ola pra quem esta vendo este topico ,entao eu ajeitei um sistema de hs soque ta assim eu atiro na cabзa fala q foi hs se eu acerto na perna leva hs
eu nao sei se й esse
PHP Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
new string[20];
format(string, sizeof(string), "~s~-~r~%.0f", amount);
GameTextForPlayer(playerid, string, 1000, 6);
GameTextForPlayer(issuerid , string, 1000, 5);
PlayerPlaySound(issuerid , 17802, 0.0, 0.0, 0.0);
PHP Code:
DamageTick[playerid] = TickCounter;
}
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 || weaponid == 24 || weaponid == 33 && bodypart == 9 && Arena2[playerid] == 0 && Arena[playerid] == 0 && mortohs[playerid] == false){
if(Arena[playerid] != 1) {
SetPlayerHealth(playerid, 0.0);
new wpname[50];
GetWeaponName(weaponid,wpname,sizeof(wpname));
new strm[200], matado[MAX_PLAYER_NAME], matador[MAX_PLAYER_NAME];
GetPlayerName(issuerid,matador,sizeof(matador));
GetPlayerName(playerid,matado,sizeof(matado));
format(strm,sizeof(strm),"{FFFFFF}|SERVER|» {FFFF00}%s {FF0000}Levou um Headshot de {FFFF00}%s {FF0000}(%s)",matado,matador,wpname);
SendClientMessageToAll(-1,strm);
GameTextForPlayer(issuerid, "~g~~n~~n~~n~~n~~n~~n~HeadShot Porra!", 5000, 6);//Nem Mexe
GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~~n~~n~HeadShot Porra!", 10000, 6);//Nem Mexe
//PlayAudioStreamForPlayer(playerid, "http://soundfxcenter.com/video-games/counter-strike/7e1521_Counter_Strike_Headshot_Sound_Effect.mp3");//
mortohs[playerid] = true;
}
}
return 1;
}
Code:
Bodyparty