29.04.2016, 18:23
Well, How do i COMPLETELY Stop damaging a player when another player damages him / her? Returning 0 on playergivedamage or takedamage wont help?
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { new Float:currenthealth; GetPlayerHealth(playerid, currenthealth); SetPlayerHealth(playerid, currenthealth+amount); return 1; }
Well, i don't use the "team" thingy in my script, i use factions. I just want to stop damaging player if they are of same faction.
Wont returning 0 OnPlayerWeaponShot simply make the bullet useless? Can i Just make them Useless if they're shot to the member of the same faction, or the car occupied by him? |
if(!IsValidObject(hitid)) { if(GetFactionType(playerid) == GetFactionType(hitid) && PlayerData[playerid][pOnDuty] && PlayerData[hitid][pOnDuty]) return 0; }