02.05.2012, 15:33
There are two ways to do this...
1) Use SetPlayerTeam
2)//Paste this under OnPlayerGiveDamage
1) Use SetPlayerTeam
2)//Paste this under OnPlayerGiveDamage
pawn Код:
if(gTeam[killerid] == gTeam[playerid])
{
new Float:h;
GetPlayerHealth(damagedid,h);
SetPlayerHealth(damagedid,h+amount);
}