SA-MP Forums Archive
[SOLVED] Add a Marker on the 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] Add a Marker on the map? (/showthread.php?tid=109897)



[SOLVED] Add a Marker on the map? - FreddeN - 22.11.2009

Hello Again.

Well, I have maked a /jobs menu, if you select a job, a marker should be added on the map so the player can easy go to the job's HQ.
That was the quastion, how can I make a marker appear on the map when I select a job?

Here is my Menu script:

Код:
if(CurrentMenu == jobsmenu)
	{
 		switch(row)
  		{
   		case 0:
    	{
	      TogglePlayerControllable(playerid, true);
	      SendClientMessage(playerid, 0xFFFFFFFF, "You have chosen to be employed as a News Reporter.");
	      SendClientMessage(playerid, 0xC0C0C0FF, "The selected job headquarters has been marked on your map.");
			}
    	case 1:
    	{
	    	TogglePlayerControllable(playerid, true);
	      SendClientMessage(playerid, 0xFFFFFFFF, "You have chosen to be employed as a Taxi Driver.");
	      SendClientMessage(playerid, 0xC0C0C0FF, "The selected job headquarters has been marked on your map.");
			}
    	case 2:
    	{
	    	TogglePlayerControllable(playerid, true);
	      SendClientMessage(playerid, 0xFFFFFFFF, "You have chosen to be employed as a Truck Driver.");
	      SendClientMessage(playerid, 0xC0C0C0FF, "The selected job headquarters has been marked on your map.");
			}
		}
	}
}
If you ask why it is so many "}" at the bottom, it is because I got another menu just above that takes part in the same script.

Thank you


Re: [HELP] Add a Marker on the map? - Zeromanster - 22.11.2009

Use SetPlayerCheckpoint.


Re: [HELP] Add a Marker on the map? - Peter_Corneile - 22.11.2009

https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint


Re: [HELP] Add a Marker on the map? - FreddeN - 23.11.2009

Thanks, it works great


Re: [HELP] Add a Marker on the map? - Peter_Corneile - 23.11.2009

Quote:
Originally Posted by FreddeN
Thanks, it works great