?Help
#5

You have to change it to
Код:
new PlayerText:vSpeedBox;
Put this under OnPlayerConnect:
Код:
vSpeedBox = CreatePlayerTextDraw(540.666259, 418.637756, "0");
	PlayerTextDrawLetterSize(vSpeedBox, 0.000000, -3.155556);
	PlayerTextDrawTextSize(vSpeedBox, 649.999572, 0.000000);
	PlayerTextDrawAlignment(vSpeedBox, 1);
	PlayerTextDrawColor(vSpeedBox, 0);
	PlayerTextDrawUseBox(vSpeedBox, true);
	PlayerTextDrawBoxColor(vSpeedBox, 102);
	PlayerTextDrawSetShadow(vSpeedBox, 0);
	PlayerTextDrawSetOutline(vSpeedBox, 0);
	PlayerTextDrawFont(vSpeedBox, 2);
Код:
forward speedinfotd(playerid);
	public speedinfotd(playerid)
	{
			new String [ 30 ];
	        new Float:X;
	        new Float:Y;
	        new Float:Z;
	        GetVehicleVelocity(GetPlayerVehicleID(playerid),X,Y,Z);
	        format(String,150,"~W~~Y~%d",floatround(floatsqroot(X * X + Y * Y + Z * Z) * 200.0000));
			PlayerTextDrawSetString(playerid, vSpeedBox, String);
	        return 1;
	}
And use the code below to show or hide it.
Код:
PlayerTextDrawShow(playerid, vSpeedBox);
PlayerTextDrawHide(playerid, vSpeedBox);
To destroy it use:
Код:
PlayerTextDrawDestroy(playerid, vSpeedBox);
Reply


Messages In This Thread
?Help - by fireranger11 - 22.05.2017, 06:32
Re: ?Help - by DarkSkull - 22.05.2017, 06:40
Re: ?Help - by fireranger11 - 22.05.2017, 06:43
Re: ?Help - by DarkSkull - 22.05.2017, 06:45
Re: ?Help - by Aly - 22.05.2017, 06:50
Re: ?Help - by DarkSkull - 22.05.2017, 06:55
Re: ?Help - by fireranger11 - 22.05.2017, 07:19
Re: ?Help - by fireranger11 - 22.05.2017, 07:30

Forum Jump:


Users browsing this thread: 2 Guest(s)