04.07.2015, 23:59
i think you have to make it on OnPlayerTakeDamage
IM NOT SURE IF WORK
IM NOT SURE IF WORK
Quote:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID && weaponid == 31 && IsPlayerInVehicle(issuerid, 447)) { new Float:hp; GetPlayerHealth(playerid, hp); SetPlayerHealth(playerid, hp + amount); } return 1; } |