SA-MP Forums Archive
Textdraw for Minimap - 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: Textdraw for Minimap (/showthread.php?tid=597071)



Textdraw for Minimap - Kinsley - 26.12.2015

Hello users of SA-MP Forums, I want to know if there was a textdraw used for roleplay servers for covering the minimap until a player does not buy the GPS, thanks in advance.


Re: Textdraw for Minimap - SmoW - 26.12.2015

You can use GangZoneCreate and cover the whole map with a black gang zone. That will hide perfectly the map :3

Here is a small code:

On top under #include<a_samp>

Код:
new map;
#define COLOR_BLACK 0x000000FF
At OnGameModeInit

Код:
map = GangZoneCreate(-3000.0, -3000.0,3000.0,3000.0);
Then you go where new players connect or where players don't have a GPS and do this:

Код:
GangZoneShowForPlayer(playerid,map, COLOR_BLACK);
Then you go where he uses the GPS and add this:

Код:
GangZoneHideForPlayer(playerid,map);
Hope it helped :3 Feel free to +rep.


Re: Textdraw for Minimap - GoDz3rK - 26.12.2015

You're a GENIUS!!!


Re: Textdraw for Minimap - Kinsley - 26.12.2015

Thanks, I try and let you know Rep +1


Re: Textdraw for Minimap - SmoW - 26.12.2015

Quote:
Originally Posted by Kinsley
Посмотреть сообщение
Thanks, I try and let you know Rep +1
Here's a rep for you too! :3


Re: Textdraw for Minimap - Kinsley - 26.12.2015

Quote:
Originally Posted by SmoW
Посмотреть сообщение
Here's a rep for you too! :3
It could also do that only covers the islands of SF and LV?


Re: Textdraw for Minimap - SmoW - 26.12.2015

Quote:
Originally Posted by Kinsley
Посмотреть сообщение
It could also do that only covers the islands of SF and LV?
You want it only to cover San Fierro and Las Venturas?


Re: Textdraw for Minimap - Kinsley - 26.12.2015

Yes...
It should remain only the red zone country with the elimination of SF, MF, FC etc.


Re: Textdraw for Minimap - PrO.GameR - 26.12.2015

Quote:
Originally Posted by Kinsley
Посмотреть сообщение
It could also do that only covers the islands of SF and LV?
Simply find coordinates of where you want to hide ( You need to find 4 spots for it, to make a box) then create it with create gangzone function, show and hide it with the other function
What is exactly so hard to do there ? changing the solution to fit your situation needs NO KNOWLEDGE OF PAWN, but a non freaking lazy ass and a will to do it.

Why the hell do you want to be spoon-fed people ?