25.01.2015, 11:29
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid,bodypart) { if(GetPlayerTeam(issuerid) != GetPlayerTeam(playerid)) { if((weaponid == 23 || weaponid == 33 || weaponid == 34) && bodypart == 9) { SetPlayerHealth(playerid, 0.0); GameTextForPlayer(issuerid, "~r~Headshot", 3000, 3); GameTextForPlayer(playerid, "~r~Headshot", 3000, 3); } }else {GameTextForPlayer(issuerid, "~r~Team killing not allowed", 3000, 3);} return 1; }