map on textdraw - 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)
+--- Thread: map on textdraw (
/showthread.php?tid=659498)
map on textdraw -
DeMoo - 05.10.2018
how can i calculate my pos on textdraw, i need example
Re: map on textdraw -
DIRTYBYT3 - 05.10.2018
Can you be more specific...
Re: map on textdraw -
DeMoo - 05.10.2018
Re: map on textdraw -
andrey1311 - 05.10.2018
https://sampforum.blast.hk/showthread.php?tid=645016
take a look on this. He gets the max points of the textdraw. The corners
Hope that this will help you
Re: map on textdraw -
DeMoo - 05.10.2018
PHP код:
GetPlayerPos(playerid,x,y,z);
PX = 478.969635; //X Pos of textdraw
PY = 267.050018; //Y Pos of textdraw
MX = 152.269424; //X Map textdraw size
MY = 170.333404; //Y Map textdraw size
TDX = PX + MX * (x + 3000.0) / 6000.0;
TDY = PY + MY * (3000.0 - y) / 6000.0;
MAP[playerid][0] = CreatePlayerTextDraw(playerid,TDX, TDY, "hud:radar_light");
coords is not corectly