public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
public OnPlayerTakeDamage(playerid, issuerid, Float: amount) { if(issuerid != INVALID_PLAYER_ID && bodypart == 9) { SetPlayerHealth(playerid, 0.0); } return 1; }
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart){ new Float:pHP; GetPlayerHealth(damagedid, pHP); if((pHP - amount) < 40.0 && !PlayerInfo[damagedid][Animban]) { if(bodypart != 7 && bodypart != return 1; PlayerInfo[damagedid][Animban] = 1; TogglePlayerControllable(damagedid, 1); ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.1, 1, 1, 1, 0, 0, 1); SendClientMessage(damagedid, -1, \"RIP Láb!\"); } return 1;}
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart){ new Float:pHP; GetPlayerHealth(damagedid, pHP); if((pHP - amount) < 40.0 && !PlayerInfo[damagedid][Animban]) { if(bodypart != 7 && bodypart != return 1; PlayerInfo[damagedid][Animban] = 1; TogglePlayerControllable(damagedid, 1); ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0); SendClientMessage(damagedid, -1, \"RIP Láb!\"); if(bodypart != 9) return 1; SetPlayerHealth(playerid, 0.0); } return 1;
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart){ if(issuerid != INVALID_PLAYER_ID && bodypart == 9) { SetPlayerHealth(playerid, 0.0); return 1; } new Float:pHP; GetPlayerHealth(damagedid, pHP); if((pHP - amount) < 40.0 && !PlayerInfo[damagedid][Animban]) { if(bodypart != 7 && bodypart != return 1; PlayerInfo[damagedid][Animban] = 1; TogglePlayerControllable(damagedid, 1); ApplyAnimation(damagedid, \"SWEET\", \"Sweet_injuredloop\", 4.1, 1, 1, 1, 0, 0, 1); SendClientMessage(damagedid, -1, \"RIP Láb!\"); } return 1;}
if(damagedid != INVALID_PLAYER_ID && bodypart == 9)
SetPlayerHealth(damagedid, 0.0);
xD... most ha valakit fejbe lövök és halok meg xd.anim rendszer müködik köszönöm!