18.12.2015, 08:03
Simple.
If you are not using SetPlayerTeam change it into your variable. Not sure if its going to work with GetPlayerTeam as there is no team fire but yeah there u go an example
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) {
if(GetPlayerTeam(playerid) == GetPlayerTeam(damagedid)) {
SendClientMessage(playerid,COLOR_RED,"Hold your fire");
}
return true;
}