09.03.2011, 22:22
Using the OnPlayerShootPlayer include: https://sampforum.blast.hk/showthread.php?tid=195439
Make the code like this :
I hope that i have helped
Make the code like this :
pawn Код:
public OnPlayerShootPlayer(shooter,target,Float:damage)
{
if(gTeam[shooter] == gTeam[target])
{
SendClientMessage(shooter,0xFFFFFFAA,"Don't shoot your friend ! xD");
SetPlayerHealth(shooter, 0.0);
}
return 1;
}