25.06.2014, 21:12
(
Последний раз редактировалось MultiKill; 25.06.2014 в 22:10.
)
Vou lhe dar as funзхes e dar exemplos.
GetPlayerWeapon
OnPlayerGiveDamage
OnPlayerTakeDamage
GetPlayerWeapon
OnPlayerGiveDamage
OnPlayerTakeDamage
Код:
OnPlayerTakeDamage = Vк quem deu o dano OnPlayerGiveDamage = Vк quem recebeu o dano
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
if(GetPlayerWeapon(playerid) == 22)
{
SendClientMessage(damagedid,-1,"Vocк levou tiro de uma 9mm");
}
return 1;
}