04.10.2012, 20:28
pawn Код:
#include <a_samp>
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(IsPlayerConnected(playerid)
&& issuerid != 65535)
{
new dano[80];
format(dano, sizeof(dano),"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Perda: ~h~~h~~h~~h~ -%d", floatround(amount, floatround_round));
GameTextForPlayer(playerid, dano, 2500, 3);
}
printf("%d | %d", playerid, issuerid);
return true;
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
new dano[80];
format(dano, sizeof(dano),"~g~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Dano: ~h~~h~~h~ +%d", floatround(amount, floatround_round));
GameTextForPlayer(playerid, dano, 2500, 3);
return true;
}