help with health - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help with health (
/showthread.php?tid=542415)
help with health -
Lucas_HenryK - 19.10.2014
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new duelSTR[200];
new Float:H,Float:A;
GetPlayerHealth(playerid,H);
GetPlayerArmour(playerid,A);
format(duelSTR,sizeof(duelSTR),"%s killed %s (life reaming: %d)",GetName(killerid),GetName(playerid),H+A);
SendClientMessageToAll(0xD5D48FFF,duelSTR);
return 1;
}
i cant see life reaming in the game some one can help me?
Re: help with health -
Lucas_HenryK - 19.10.2014
somone help me?
Re: help with health -
Quickie - 19.10.2014
try this
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new duelSTR[200];
new Float:H,Float:A;
GetPlayerHealth(killerid,H);
GetPlayerArmour(killerid,A);
format(duelSTR,sizeof(duelSTR),"%s killed %s (life reaming: %d)",GetName(killerid),GetName(playerid),H+A);
SendClientMessageToAll(0xD5D48FFF,duelSTR);
return 1;
}
Re: help with health -
Lucas_HenryK - 19.10.2014
not working
saying life reaming: 1594871
Re: help with health -
AroseKhanNiazi - 19.10.2014
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new duelSTR[200];
new Float:H,Float:A;
GetPlayerHealth(killerid,H);
GetPlayerArmour(killerid,A);
format(duelSTR,sizeof(duelSTR),"%s killed %s (life reaming: %f)",GetName(killerid),GetName(playerid),H+A);
SendClientMessageToAll(0xD5D48FFF,duelSTR);
return 1;
}
its and float value so use %f