Textdraw for Minimap
#1

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.
Reply
#2

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.
Reply
#3

You're a GENIUS!!!
Reply
#4

Thanks, I try and let you know Rep +1
Reply
#5

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

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?
Reply
#7

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?
Reply
#8

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

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 ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)