02.04.2013, 23:45
Puedes hacerlo como dice Blackazur, pero si quieres ahorrarte el include puedes usarlo asн:
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(GetPlayerTeam(playerid) == GetPlayerTeam(damagedid))
{
new Float:P_Health;
GetPlayerHealth(damagedid, P_Health);
SetPlayerHealth(damagedid, P_Health + amount);
SendClientMessage(playerid, -1, "No dispares a los de tu propio equipo!"); // Opcional
return 1;
}
return 1;
}