GetPlayer2dZone -
DownDuckling - 26.10.2014
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.
Re: GetPlayer2dZone -
Rudy_ - 26.10.2014
There are alot of ingame textdraw editors, You can da that by using any of these filterscripts
Re: GetPlayer2dZone -
gurmani11 - 26.10.2014
Here you go
pawn Код:
// 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.
pawn Код:
// 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.
pawn Код:
// 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.
Re: GetPlayer2dZone -
DownDuckling - 26.10.2014
I want it to show the location on the map, not Julius Thruway North....
Re: GetPlayer2dZone -
Abagail - 26.10.2014
Then just substitue it with the given location. For example,
pawn Код:
public OnPlayerUpdate(playerid)
{
new zonename[64];
GetPlayer2dZone(playerid, zonename, sizeof(zonename);
PlayerTextDrawSetString(playerid, InfoMessage[0], zonename);
return true;
}