22.01.2013, 13:51
if you are using gTeam. then put this to your gamemode
basically..
improve this yourself
basically..
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if (gTeam[playerid] == gTeam[damagedid] && amount > 5)
{
SetPlayerArmedWeapon(playerid, 0);
GameTextForPlayer(playerid,"~W~TEAM KILL is NOT allowed",2000,3);
}
return 0;
}