16.02.2015, 23:48 
	
	
	Quote:
| So basically using your code you wish to disable law enforcers from giving damage? And CIV's with no wanted level can't take fall damage? Here is another example that prevents players from shooting someone if they have less than the shooting / attacking player's score. pawn Code: 
 playerid - The one taking damage issuerid - The one issuing damage(to the other player/playerID) | 
pawn Code:
public OnPlayerTakeDamage(playerid, issuerid, weaponid, bodypart)
{
if(playerid != issuerid && IsALawEnforcement(playerid) && IsALawEnforcement(issuerid) )
{
new Float: health;
GetPlayerHealth(playerid, health+amount);
SetPlayerHealth(playerid, health);
return 0;
}
return 1;
}
Thanks



