Need help with text draws - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with text draws (
/showthread.php?tid=244280)
Need help with text draws -
aqu - 26.03.2011
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 ?
Re: Need help with text draws -
aqu - 26.03.2011
Oh,fixed by my self
Код:
TextDrawShowForPlayer(playerid,Points);
xD