13.02.2015, 15:28
this is my code
I want to play ding sound when we hit someone but its not working,if you guys could help me out.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) { if(!IsPlayerConnected(playerid)) return 0; if(!IsPlayerConnected(issuerid)) return 0; if(issuerid != INVALID_PLAYER_ID && 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 if(issuerid != INVALID_PLAYER_ID) { PlayerPlaySound(issuerid,6401,0,0,0); } return 1; }