How to use this font? - 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: How to use this font? (
/showthread.php?tid=587924)
How to use this font? -
pedrotvr - 04.09.2015
https://www.youtube.com/watch?v=zGPMYBsk2wA
How to use it in
Код:
OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
I want show my damage here, how to do it?
Код:
new Float:dmg;
GameTextForPlayer(damagedid, "~r~ %f", 1000, 3);
GameTextForPlayer(playerid, "~g~ %f", 1000, 3);
Re: How to use this font? -
SickAttack - 04.09.2015
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
new string[10];
format(string, sizeof(string), "~r~%.2f", amount);
GameTextForPlayer(damagedid, string, 1000, 3);
format(string, sizeof(string), "~g~%.2f", amount);
GameTextForPlayer(playerid, string, 1000, 3);
}
return 1;
}
Re: How to use this font? -
pedrotvr - 06.09.2015
Quote:
Originally Posted by SickAttack
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID) { new string[10]; format(string, sizeof(string), "~r~%.2f", amount); GameTextForPlayer(damagedid, string, 1000, 3);
format(string, sizeof(string), "~g~%.2f", amount); GameTextForPlayer(playerid, string, 1000, 3); } return 1; }
|
Ty!!! +REP