24.02.2012, 14:44
how i can create like if someone his color blue and other color is blue when they shot each other no one lose health like God Mod ??! Please Help!
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) {
if (GetPlayerTeam(playerid) == GetPlayerTeam(damagedid)) {
new Float:damagedHealth;
GetPlayerHealth(damagedid, damagedHealth);
SetPlayerHealth(damagedid, damagedHealth + amount);
}
return 1;
}