SA-MP Forums Archive
Hide Map - 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: Hide Map (/showthread.php?tid=639316)



Hide Map - Hiei - 15.08.2017

In Game Mode Survival ( Zombie ), i want hide map when player no have GPS
I don't know how to hide this, anyone can help me : D: : D


Re: Hide Map - 10MIN - 15.08.2017

Maybe by using a textdraw over the minimap with a text like: "You need a GPS to view the map".
PS: I have seen this somewhere in a server, don't remember it's name.
PS2: If they have a cleo mod with minimap (like me ) this is useless.


Re: Hide Map - AbyssMorgan - 15.08.2017

Use:
TextDraw for hide GPS in HUD
or
GangZone for hide MAP + GPS


Re: Hide Map - Hiei - 15.08.2017

I was see one server in the map ( not hud, i don't know that is what, but in ESC => Map, it black all map
LOL


Re: Hide Map - AbyssMorgan - 15.08.2017

PHP код:
HideMap GangZoneCreate(-3000.0,-3000.0,3000.0,3000.0);

GangZoneShowForPlayer(playerid,HideMap,0x000000FF); //hide map 



Re: Hide Map - Hiei - 15.08.2017

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
PHP код:
HideMap GangZoneCreate(-3000.0,-3000.0,3000.0,3000.0);
GangZoneShowForPlayer(playerid,HideMap,0x000000FF); //hide map 
Put it in ?


Re: Hide Map - Erioni - 15.08.2017

HideMap in OnGamemodeInit and GangZoneShowForPlayer in OnPlayerConnect, I suppose.
Not so sure.


Re: Hide Map - xLucy - 15.08.2017

PHP код:
OnGameModeInit:

HideMap GangZoneCreate(-3000.0,-3000.0,3000.0,3000.0); 
PHP код:
OnPlayerSpawn:

GangZoneShowForPlayer(playerid,HideMap,0x000000FF); 
PHP код:
OnPlayerCommandReceived:

if(
strcmp("/quit"cmdtext) || strcmp("/q"cmdtext)) GangZoneHideForPlayer(playeridHideMap); 
This is only an example of what you can do. There are many, many other things.


Re: Hide Map - Hiei - 16.08.2017

Thanks All it work


Re: Hide Map - xLucy - 16.08.2017

Quote:
Originally Posted by Hiei
Посмотреть сообщение
Thanks All it work
Your very welcome.
Feel free to rep me if I helped you at all.