SA-MP Forums Archive
[Tutorial] How To Enable Player's Map icon? - 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] How To Enable Player's Map icon? (/showthread.php?tid=454387)



How To Enable Player's Map icon? - [xT]Emaratii - 28.07.2013

How to Enable or Disable player icon's on Minimap?


A short/quick Tutorial on: Enabling and disabling of Small icons on minimap or big map which indicates players online/playing.

Enabling
Step 1: Open your Gamemode with pawno.exe and Find this in your gamemode
Code:
public OnGameModeInit()
{
Step 2: Copy this code and paste it under public OnGameModeInit()
Code:
ShowPlayerMarkers(1);
To change the mode of ShowPlayerMarkers Just change (0),(1)&(2).
Mode (0) :- Icon's wont be shown even if the player is close/near to us. (Disabled)
Mode (1) :- When the player is near to us then that player's ICON will be shown.
Mode (2) :- Player's icons will be shown on every condition like if he is near to us or far from us, The icons will be visible on our minimap.

•Disabling•
Step 1: Find this in your gamemode:
Code:
ShowPlayerMarkers(2);
Step 2: Remove this line
Code:
ShowPlayerMarkers(2);
Or Replace (2) with (0). *Mode 0 Means Disabling*.

*My first tutorial! .


Re: How To Enable Player's Map icon? - Sellize - 28.07.2013

uhm.... okay a bit short but its good I guess


Re: How To Enable Player's Map icon? - [xT]Emaratii - 28.07.2013

Quote:
Originally Posted by Sellize
View Post
uhm.... okay a bit short but its good I guess
Yes Its a quick tutorial.


Re: How To Enable Player's Map icon? - CAC - 28.07.2013

Useful, thanks.


Re: How To Enable Player's Map icon? - x96664 - 28.07.2013

Uhm, wrong section


Re: How To Enable Player's Map icon? - [xT]Emaratii - 29.07.2013

Sorry.


Re: How To Enable Player's Map icon? - SourceCode - 29.07.2013

Good tutorial, but i think it belongs to Codes and Snippets thread.
__________________
Enquire your Pnr Status.


Re: How To Enable Player's Map icon? - [xT]Emaratii - 29.07.2013

Thanks buddy


Re: How To Enable Player's Map icon? - [xT]Emaratii - 29.07.2013

Quote:
Originally Posted by _Jake_
View Post
Okay let me guess?
Rep or -Rep? Guess it yourself.

Anyway, Short Tutorial, 1 clap, that's it.
It is well explain but to easy to create, It is not Player Map Icon.
It is Player Marker.
Dude, I know you are smart in scripting or anything.

*I clearly said, Short/quick tutorial. >.< Take your -REP back. I don't want anything from you.


Re: How To Enable Player's Map icon? - Sinner - 29.07.2013

You are wrong:

pawn Code:
PLAYER_MARKERS_MODE_OFF        (0)
PLAYER_MARKERS_MODE_GLOBAL     (1)
PLAYER_MARKERS_MODE_STREAMED   (2)
1 = See players all the time
2 = only see players when they are near

If you're gonna make a tutorial atleast look up the information.


Re: How To Enable Player's Map icon? - [xT]Emaratii - 29.07.2013

Test it and then say.

*I will edit it .