27.07.2014, 21:40
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID && weaponid == 8) { new Float:HP; print("Debug 1"); GetPlayerHealth(playerid, HP); print("Debug 2"); SetPlayerHealth(playerid,HP-50); print("Debug 3"); PlayerPlaySound(issuerid,17802,0.0,0.0,0.0); print("Debug 4"); PlayerPlaySound(playerid,17802,0.0,0.0,0.0); print("Debug 5"); } return 1; }