Stats textdraw - 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: Stats textdraw (
/showthread.php?tid=466647)
Stats textdraw -
Voxel - 28.09.2013
Hello samp cummunity,
I need help with showing the stats of the player on screen with a textdraw, i was wondering if u guys could start me off with the "kills" stats and then i can work it off my self from off that.
heres all my code:
pawn Код:
#include <YSI\y_ini>
enum PlayerInfo
{
Kills
}
new pInfo[MAX_PLAYERS][PlayerInfo];
new Text:Textdraw14; //the kills textdraw
//and the textdraw its self:
Textdraw14 = TextDrawCreate(501.714233, 102.400001, "Kills:");
TextDrawLetterSize(Textdraw14, 0.362760, 1.382398);
TextDrawAlignment(Textdraw14, 1);
TextDrawColor(Textdraw14, -1);
TextDrawSetShadow(Textdraw14, 0);
TextDrawSetOutline(Textdraw14, 1);
TextDrawBackgroundColor(Textdraw14, 51);
TextDrawFont(Textdraw14, 1);
TextDrawSetProportional(Textdraw14, 1);
thanks!
Re: Stats textdraw -
Voxel - 29.09.2013
Anyone?
Re: Stats textdraw -
zrelly - 29.09.2013
Код:
Textdraw14 = TextDrawCreate(501.714233, 102.400001, "Kills:%d", PlayerInfo[playerid][Kills]);
Textdraw15 = TextDrawCreate(501.714233, 102.400001, "Deaths:%d", PlayerInfo[playerid][Deaths]);
Textdraw16 = TextDrawCreate(501.714233, 102.400001, "Scores:%d", GetPlayerScore(playerid);
Re: Stats textdraw -
DaTa[X] - 29.09.2013
use
TextDrawSetString or
PlayerTextDrawSetString
Re: Stats textdraw -
Voxel - 29.09.2013
Thanks guys