13.02.2015, 18:24
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) { if(!IsPlayerConnected(playerid)) return 0; if(!IsPlayerConnected(issuerid)) return 0; if(issuerid != INVALID_PLAYER_ID ) { if( weaponid == 34 && bodypart == 9) { SetPlayerHealth(playerid, 0.0); GameTextForPlayer(playerid, "PWNED", 5000, 3); GameTextForPlayer(issuerid, "HEADSHOT", 5000, 3); PlayerPlaySound(issuerid,1147,0.0,0.0,0.0); } else { PlayerPlaySound(issuerid,6401,0,0,0); } } return 1; }