[Tutorial] How To Enable Player's Map icon?
#1

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

uhm.... okay a bit short but its good I guess
Reply
#3

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

Useful, thanks.
Reply
#5

Uhm, wrong section
Reply
#6

Sorry.
Reply
#7

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

Thanks buddy
Reply
#9

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.
Reply
#10

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.
Reply
#11

Test it and then say.

*I will edit it .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)