26.10.2014, 01:33
Hello, I am trying to find out how to make a textdraw above the minimap that shows the location.
I am currently using the a_zones include.
I am currently using the a_zones include.
// PlayerTextDraw developed using Zamaroht's Textdraw Editor 1.0 [R3]
new PlayerText:InfoMessage[0];
// In OnPlayerConnect prefferably, we procced to create our textdraws:
InfoMessage[0] = CreatePlayerTextDraw(playerid, 94.000000, 323.000000, "Julius Thruway North");
PlayerTextDrawAlignment(playerid, InfoMessage[0], 2);
PlayerTextDrawBackgroundColor(playerid, InfoMessage[0], -239);
PlayerTextDrawFont(playerid, InfoMessage[0], 1);
PlayerTextDrawLetterSize(playerid, InfoMessage[0], 0.360000, 1.200000);
PlayerTextDrawColor(playerid, InfoMessage[0], 255);
PlayerTextDrawSetOutline(playerid, InfoMessage[0], 1);
PlayerTextDrawSetProportional(playerid, InfoMessage[0], 1);
PlayerTextDrawSetSelectable(playerid, InfoMessage[0], 0);
//Use Stocks to show, hide or destroy TXDs. Or go straight up in public functions.
PlayerTextDrawHide(playerid, InfoMessage[0]);
PlayerTextDrawDestroy(playerid, InfoMessage[0]);
PlayerTextDrawShow(playerid, InfoMessage[0]);
// A slight change by AmmaRz™
// Credits to Zamaroht.
// PlayerTextDraw developed using Zamaroht's Textdraw Editor 1.0 [R3]
new PlayerText:InfoMessage[0];
// In OnPlayerConnect prefferably, we procced to create our textdraws:
InfoMessage[0] = CreatePlayerTextDraw(playerid, 94.000000, 323.000000, "Julius Thruway North");
PlayerTextDrawAlignment(playerid, InfoMessage[0], 2);
PlayerTextDrawBackgroundColor(playerid, InfoMessage[0], -239);
PlayerTextDrawFont(playerid, InfoMessage[0], 0);
PlayerTextDrawLetterSize(playerid, InfoMessage[0], 0.509999, 1.500000);
PlayerTextDrawColor(playerid, InfoMessage[0], 1711276287);
PlayerTextDrawSetOutline(playerid, InfoMessage[0], 1);
PlayerTextDrawSetProportional(playerid, InfoMessage[0], 1);
PlayerTextDrawSetSelectable(playerid, InfoMessage[0], 0);
//Use Stocks to show, hide or destroy TXDs. Or go straight up in public functions.
PlayerTextDrawHide(playerid, InfoMessage[0]);
PlayerTextDrawDestroy(playerid, InfoMessage[0]);
PlayerTextDrawShow(playerid, InfoMessage[0]);
// A slight change by AmmaRz™
// Credits to Zamaroht.
// PlayerTextDraw developed using Zamaroht's Textdraw Editor 1.0 [R3]
new PlayerText:InfoMessage[0];
// In OnPlayerConnect prefferably, we procced to create our textdraws:
InfoMessage[0] = CreatePlayerTextDraw(playerid, 94.000000, 323.000000, "Julius Thruway North");
PlayerTextDrawAlignment(playerid, InfoMessage[0], 2);
PlayerTextDrawBackgroundColor(playerid, InfoMessage[0], 1633812531);
PlayerTextDrawFont(playerid, InfoMessage[0], 3);
PlayerTextDrawLetterSize(playerid, InfoMessage[0], 0.410000, 1.100000);
PlayerTextDrawColor(playerid, InfoMessage[0], -1852702465);
PlayerTextDrawSetOutline(playerid, InfoMessage[0], 1);
PlayerTextDrawSetProportional(playerid, InfoMessage[0], 1);
PlayerTextDrawSetSelectable(playerid, InfoMessage[0], 0);
//Use Stocks to show, hide or destroy TXDs. Or go straight up in public functions.
PlayerTextDrawHide(playerid, InfoMessage[0]);
PlayerTextDrawDestroy(playerid, InfoMessage[0]);
PlayerTextDrawShow(playerid, InfoMessage[0]);
// A slight change by AmmaRz™
// Credits to Zamaroht.
public OnPlayerUpdate(playerid)
{
new zonename[64];
GetPlayer2dZone(playerid, zonename, sizeof(zonename);
PlayerTextDrawSetString(playerid, InfoMessage[0], zonename);
return true;
}