Need help with text draws
#1

Hello,I need that when player is playing,in right side down player will see his kill points.

So here is my text draw:
Код:
new killpoints[MAX_PLAYERS];
new Text:Points;

forward PointsCheck(playerid);

// OnGameMode init

    Points = TextDrawCreate(410.000000, 430.000000,"   ");
    TextDrawBackgroundColor(Points, 255);
    TextDrawFont(Points, 1);
    TextDrawLetterSize(Points, 0.619999, 1.800000);
    TextDrawSetOutline(Points, 1);
    TextDrawColor(Points,COLOR_BLUE);
    TextDrawSetProportional(Points, 1);

SetTimer("PointsCheck",1000,1);

// On player spawn
killpoints[playerid]=0;

// Points check(playerid)

    new string[32];
    format(string,sizeof(string),"%d",killpoints[playerid]);
    TextDrawSetString(Points,string);
But when I playing in server it not shows.Any help ?
Reply
#2

Oh,fixed by my self
Код:
TextDrawShowForPlayer(playerid,Points);
xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)