Quote:
Originally Posted by axxelac
pawn Код:
onduty[MAX_PLAYERS]; //Top of your script
onduty[playerid] = 1; // On Your CMD
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { if(issuerid != INVALID_PLAYER_ID && onduty[playerid] == 1) { SetPlayerHealth(playerid, amount); } return 1; }
UNTESTED
|
It wont work with for ex. minigun... Health will be set'd after you die.