SetPlayerColor
#1

How to turn off colours for names?
Reply
#2

Search in your script all the lines "SetPlayerColor"
Then put this
pawn Код:
//Define the COLOR_WHITE

public OnPlayerSpawn(...)
{
SetPlayerColor(playerid,COLOR_WHITE);
return 1;
}
Reply
#3

But it shows the white dot on map.
Reply
#4

https://sampwiki.blast.hk/wiki/ShowPlayerMarkers
Reply
#5

Quote:
Originally Posted by vent
Посмотреть сообщение
But it shows the white dot on map.
You didn't said the markers,you said only the color xD
Nvm,use the tutorial from Marcel
Reply
#6

Marcel, i dont want to show marker to anybody.
Reply
#7

If you would have checked the wiki page, you would have seen that you should put this in OnGameModeInit():
pawn Код:
ShowPlayerMarkers(0);
PLAYER_MARKERS_MODE_OFF (0)
PLAYER_MARKERS_MODE_GLOBAL (1)
PLAYER_MARKERS_MODE_STREAMED (2)

This is stated in the Wiki page, if you would have checked the page for a few seconds you would have noticed this! We are not going to do everything for you!
Reply
#8

Thanks, now it works.
Reply
#9

Sorry, but I have one question about markers.
How do I make when admin turn on a duty to show everyone his marker, and marker of other players not to show?
Reply
#10

Sorry, I don't understand your question. But if you want to show all markers again, use
pawn Код:
ShowPlayerMarkers(2);
If you want to hide or show a marker for one specific player you have to use
pawn Код:
SetPlayerMarkerForPlayer
Which can be found here (with examples): https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)