Stats textdraw
#1

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!
Reply
#2

Anyone?
Reply
#3

Код:
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);
Reply
#4

use TextDrawSetString or PlayerTextDrawSetString
Reply
#5

Thanks guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)