[Library] [Include] MapTD - Show GTA SA Map on a Textdraw - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13) ---- Forum: Libraries (https://forum.open.mp/forumdisplay.php?fid=31) ---- Thread: [Library] [Include] MapTD - Show GTA SA Map on a Textdraw (/showthread.php?tid=1388) |
[Include] MapTD - Show GTA SA Map on a Textdraw - Toxic - 2020-11-28 About the Include: This include will show?GTA SA default map on a TextDraw, and you can show it to any player using ShowMapForPlayer or hide by using HideMapForPlayer. This include would be too simple without this, it?also contains creating/destroying global/player icons on the created?textdraw (using only the physical x,y position for?icon you want). How to use: This include uses YSI (more specifically Y_hooks), made?by Y_Less. The required YSI folder is included in the download package, if you already have it, you don't need to add it again. Add both "MapTD.inc" and the YSI folder (if you don't already have it) to your includes folder. In order for this include to work you need to add "#include <TDMap>" on the top of your gamemode/filterscript somewhere below "#include <a_samp>". Additional define values: Maximal number of the player icons by the default is 100, and maximal number of the global icons by the default is 100, you can always modify that by defining "MAX_ICONS" and "MAX_PLAYER_ICONS" in your GameMode/FilterScript. If you are using this include in a FilterScript you need to add "#define FS_MapTD 1" inside your FilterScript. Features: Code: -ShowMapForPlayer (playerid) Note: this include was made a long time ago originally by me, and posted on the old SAMP forum, after this some people reposted it and defined themselves as the authors, so?I decided to repost it on here. If you got any questions, suggestions for improvement / optimisation or new features feel free to reply. Download: http://www.mediafire.com/file/tec9mmbslhaihl1/MapTD漯鎣ᢜ.rar/file RE: [Include] MapTD - Show GTA SA Map on a Textdraw - Pinch - 2020-11-29 You gave us everything except the include :D RE: [Include] MapTD - Show GTA SA Map on a Textdraw - Toxic - 2020-11-29 (2020-11-29, 12:33 PM)Pinch Wrote: You gave us everything except the include :D After writing all of this text I forgot to put it, it's added now |