PDA

View Full Version : SetPlayerColor goes to Marker


MayaEU
10/07/2016, 08:18 PM
When i do /toggold, it will set my name color Gold, but then everyone can see where i am on the map, like a Dot/Marker. how to remove that marker?


if(strcmp(cmd, "/toggold", true) == 0)
{
if(PlayerInfo[playerid][pDonatorLevel] >= 3)
{
if(GoldON[playerid] == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Your name is now gold!");
SetPlayerColor(playerid, DONATOR);
GoldON[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Your name is no longer gold!");
SetPlayerToTeamColor(playerid);
GoldON[playerid] = 0;
}
}
else return SendClientMessage(playerid, GREY, DonatorOnly);
return 1;
}

GoldenLion
10/07/2016, 08:23 PM
Add ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);

EDIT: Nevermind, it disables them totally.

WhiteGhost
10/07/2016, 08:24 PM
https://wiki.sa-mp.com/wiki/ShowPlayerMarkers ?

Or..
http://wiki.sa-mp.com/wiki/Color_list Alpha values


SetPlayerColor(playerid,0xRRGGBB00)

MayaEU
10/07/2016, 08:33 PM
So it would help just to set the color code? SetPlayerColor(playerid, 0xE6B659FF); like this

WhiteGhost
10/07/2016, 08:36 PM
So it would help just to set the color code? SetPlayerColor(playerid, 0xE6B659FF); like this

Is there full color if u want it to be invisible lower it.

See. http://wiki.sa-mp.com/wiki/Color_list

MayaEU
10/07/2016, 08:36 PM
What do you mean?

WhiteGhost
10/07/2016, 08:39 PM
Just look at: http://wiki.sa-mp.com/wiki/Color_list
it will tell u..

if(strcmp(cmd, "/toggold", true) == 0)
{
if(PlayerInfo[playerid][pDonatorLevel] >= 3)
{
if(GoldON[playerid] == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Your name is now gold!");
SetPlayerColor(playerid, DONATOR);
ShowPlayerMarkers(LAYER_MARKERS_MODE_OFF);
GoldON[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Your name is no longer gold!");
SetPlayerToTeamColor(playerid);
GoldON[playerid] = 0;
}
}
else return SendClientMessage(playerid, GREY, DonatorOnly);
return 1;
}

MayaEU
10/07/2016, 08:40 PM
Ah Thanks! i got it now

ProjectAlbania
10/07/2016, 08:42 PM
Can anyone please help me? http://forum.sa-mp.com/showthread.php?t=611786

WhiteGhost
10/07/2016, 08:43 PM
Can anyone please help me? http://forum.sa-mp.com/showthread.php?t=611786

Dude just wait,Geez.