[SOLVED] Add a Marker on the map?
#1

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

Use SetPlayerCheckpoint.
Reply
#3

https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
Reply
#4

Thanks, it works great
Reply
#5

Quote:
Originally Posted by FreddeN
Thanks, it works great
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)