25.07.2012, 21:10
Here you are
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if( weaponid == 38 ) // Minigun
{
new Float:Health;
GetPlayerHealth(playerid, Health);
SetPlayerHealth(playerid, Health+30); // Heals +30 the player once he get shoot'ed.. P.S You can change the value. For Example Health+100
}
return 1;
}