[Tutorial] Fast tip: How to hide the map (icons, vehicles, radar) - 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)
+---- Forum: Tutorials (
https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Fast tip: How to hide the map (icons, vehicles, radar) (
/showthread.php?tid=531350)
Fast tip: How to hide the map (icons, vehicles, radar) -
Sn0wk - 12.08.2014
To hidden all map
Top of the code
OnGameModeInit
pawn Code:
blackmap = GangZoneCreate(-3000.0,-3000.0,3000.0,3000.0);
OnPlayerSpawn
pawn Code:
GangZoneShowForPlayer(playerid, blackmap, 255);
To hide vehicles:
* Is not totally effective, but it helps hide.
Top of code:
OnGameModeInit
pawn Code:
for(new i; i ^ MAX_PLAYERS; i++)
for(new j; j ^ sizeof vehicleMarkers[]; j++)
vehicleMarkers[i][j] = -1;
OnVehicleStreamIn
pawn Code:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(IsPlayerNPC(forplayerid))
return false;
static Float: vPos[3];
GetVehiclePos(vehicleid, vPos[0],vPos[1],vPos[2]);
static maxx[2], minn[2];
maxx[0] = floatround(vPos[0] + 150.0);
maxx[1] = floatround(vPos[1] + 150.0);
minn[0] = floatround(vPos[0] - 150.0);
minn[1] = floatround(vPos[1] - 150.0);
for(new z ; z ^ sizeof vehicleMarkers[]; z++) {
static Float:x, Float:y ;
x = float(random(maxx[0]-minn[0])+minn[0]);
y = float(random(maxx[1]-minn[1])+minn[1]);
if(~vehicleMarkers[forplayerid][z]) GangZoneDestroy(vehicleMarkers[forplayerid][z]);
vehicleMarkers[forplayerid][z] = GangZoneCreate(x,y,x+9.0,y+9.0);
GangZoneShowForPlayer(forplayerid, vehicleMarkers[forplayerid][z], 0x5a697baa); // color research by me.
}
return true;
}
* To hide the radar see this:
https://sampforum.blast.hk/showthread.php?tid=320117
Thanks
Re: Fast tip: How to hide the map (icons, vehicles, radar) -
Twizted - 12.08.2014
Creating a gangzone is actually much better than creating textdraws. It looks more appealing, at least. Good effort.
Re: Fast tip: How to hide the map (icons, vehicles, radar) -
Ryz - 21.11.2014
nice nice
Re: Fast tip: How to hide the map (icons, vehicles, radar) -
Glossy42O - 21.11.2014
Looks good but is it possible to hide the map?
Re: Fast tip: How to hide the map (icons, vehicles, radar) -
LeXuZ - 21.11.2014
I like this, good for servers that are end of the world based, nice work!
Re: Fast tip: How to hide the map (icons, vehicles, radar) -
Kaperstone - 04.12.2014
Quote:
Originally Posted by Stuun
Looks good but is it possible to hide the map?
|
With textdraw.
just type a dot as the string and enlarge it.