SA-MP Forums Archive
How to view the map icon as a 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: How to view the map icon as a textdraw? (/showthread.php?tid=524237)



How to view the map icon as a textdraw? - Juvanii - 05.07.2014

Hello guys, i saw in some servers that they're using textdraws to explain what is "some icon" means on the map.

Example: Let's say we want to explain what is ID 18 map icon means (the pistol icon)
So they use it like: The *pistol icon* that you see in map is the ammunation, go and get some guns.

They show *pistol icon* as an icon, how to do this?


Re: How to view the map icon as a textdraw? - Twizted - 05.07.2014

https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
https://sampwiki.blast.hk/wiki/MapIcons

Edit: I'm not exactly sure If this is what you want, but that's what I understood from your post.


Re: How to view the map icon as a textdraw? - DiGiTaL_AnGeL - 05.07.2014

They're using sprites.


Re: How to view the map icon as a textdraw? - Juvanii - 05.07.2014

Quote:
Originally Posted by Twizted
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
https://sampwiki.blast.hk/wiki/MapIcons

Edit: I'm not exactly sure If this is what you want, but that's what I understood from your post.
I said i want to view it in textdraws. clear enough!

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
They're using sprites.
Explain more please!


Re: How to view the map icon as a textdraw? - Twizted - 05.07.2014

You'll need a sprite browser and a tutorial on how to create textdraws using sprites. They're found in the links given below.

https://sampforum.blast.hk/showthread.php?tid=291722
https://sampforum.blast.hk/showthread.php?tid=487880


Re: How to view the map icon as a textdraw? - Juvanii - 05.07.2014

Thank you!


Re: How to view the map icon as a textdraw? - Vince - 05.07.2014

The map marker icons that are shown in textdraws are objects (shown here), not sprites. Thus you need TextDrawSetPreviewModel.


Re: How to view the map icon as a textdraw? - Juvanii - 05.07.2014

Quote:
Originally Posted by Vince
Посмотреть сообщение
The map marker icons that are shown in textdraws are objects (shown here), not sprites. Thus you need TextDrawSetPreviewModel.
Well i think this is what i want, thank you :)