16.05.2013, 18:58
I added a small protection about team shooting, everything works, the issuerid lose -1 hp at each shoot at his team mate but the gametext doesn't show:
Added on OnPlayerTakeDamage.
pawn Код:
if(gTeam[issuerid] == gTeam[playerid])
{
new Float:hp;
GetPlayerHealth(issuerid, hp);
GameTextForPlayer(issuerid, "~w~Watch your fire, you are shooting at a ~r~team mate!", 5000, 4);
SetPlayerHealth(issuerid, hp -1);
}