26.10.2013, 13:18
I start making a speedometer for my server but i can't.
This will be the Textdraw:
and this will be the public:
So i need help how to get the speed and then to show it to players
This will be the Textdraw:
pawn Код:
Textdraw3 = TextDrawCreate(548 ,416 , "Speed");
TextDrawFont(Textdraw3 , 3);
TextDrawLetterSize(Textdraw3 , 0.4, 2.8000000000000003);
TextDrawColor(Textdraw3 , 0xffffffFF);
TextDrawSetOutline(Textdraw3 , false);
TextDrawSetProportional(Textdraw3 , true);
TextDrawSetShadow(Textdraw3 , 1);
pawn Код:
public SpeedMeter()
{
for(new x; x<MAX_PLAYERS; x++)
{
new TDstring[256];
format(TDstring, sizeof(TDstring), "~w~Speed: %i");
TextDrawSetString(Textdraw3[x], TDstring);
}
return 1;
}
