04.02.2012, 00:22
Option #1, and recommended - using SetPlayerTeam.
Option #2 is as someone said above my post, you can detect TK in OnPlayerTake/GiveDamage, for example:
I'm not really sure if it's gonna work well, but that's the basic code.
Option #2 is as someone said above my post, you can detect TK in OnPlayerTake/GiveDamage, for example:
pawn Код:
// under OnPlayerGiveDamage
if(gTeam[killerid] == gTeam[playerid])
{
new Float:h;
GetPlayerHealth(damagedid,h);
SetPlayerHealth(damagedid,h+amount);
}