Prevent damage to teammates
#1

I have this in my OnPlayerTakeDamage callback:
pawn Code:
if(PlayerTeamID[issuerid] == PlayerTeamID[playerid])
{
    SendClientMessage(issuerid, -1, "Do not damage to your teammates.");
    return false;
}
The problem is that when a teammate damage me, I lose my health.
Even this message is shown to my teammate, "Do not damage to your teammates."
How do I fix it
Reply


Messages In This Thread
Prevent damage to teammates - by xRadical3 - 27.06.2020, 23:45
Re: Prevent damage to teammates - by algorhitmically - 27.06.2020, 23:58
Re: Prevent damage to teammates - by Kwarde - 28.06.2020, 00:03
Re: Prevent damage to teammates - by xRadical3 - 28.06.2020, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)