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 ?