SA-MP Forums Archive
SetPlayerColor goes to Marker - 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)
+--- Thread: SetPlayerColor goes to Marker (/showthread.php?tid=611785)



SetPlayerColor goes to Marker - MayaEU - 10.07.2016

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?

pawn Код:
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;
    }



Re: SetPlayerColor goes to Marker - GoldenLion - 10.07.2016

Add ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);

EDIT: Nevermind, it disables them totally.


Re: SetPlayerColor goes to Marker - WhiteGhost - 10.07.2016

https://sampwiki.blast.hk/wiki/ShowPlayerMarkers ?

Or..
https://sampwiki.blast.hk/wiki/Color_list Alpha values

Код:
SetPlayerColor(playerid,0xRRGGBB00)



Re: SetPlayerColor goes to Marker - MayaEU - 10.07.2016

So it would help just to set the color code? SetPlayerColor(playerid, 0xE6B659FF); like this


Re: SetPlayerColor goes to Marker - WhiteGhost - 10.07.2016

Quote:
Originally Posted by MayaEU
Посмотреть сообщение
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. https://sampwiki.blast.hk/wiki/Color_list


Re: SetPlayerColor goes to Marker - MayaEU - 10.07.2016

What do you mean?


Re: SetPlayerColor goes to Marker - WhiteGhost - 10.07.2016

Just look at: https://sampwiki.blast.hk/wiki/Color_list
it will tell u..

PHP код:
if(strcmp(cmd"/toggold"true) == 0)
    {
        if(
PlayerInfo[playerid][pDonatorLevel] >= 3)
        {
               if(
GoldON[playerid] == 0)
            {
                
SendClientMessage(playeridCOLOR_WHITE"Your name is now gold!");
            
SetPlayerColor(playeridDONATOR);
                
ShowPlayerMarkers(LAYER_MARKERS_MODE_OFF);
                
GoldON[playerid] = 1;
            }
            else
            {
                
SendClientMessage(playeridCOLOR_WHITE"Your name is no longer gold!");
                
SetPlayerToTeamColor(playerid);
                
GoldON[playerid] = 0;
            }
        }
        else return 
SendClientMessage(playeridGREYDonatorOnly);
        return 
1;
    } 



Re: SetPlayerColor goes to Marker - MayaEU - 10.07.2016

Ah Thanks! i got it now


Re: SetPlayerColor goes to Marker - ProjectAlbania - 10.07.2016

Can anyone please help me? https://sampforum.blast.hk/showthread.php?tid=611786


Re: SetPlayerColor goes to Marker - WhiteGhost - 10.07.2016

Quote:
Originally Posted by ProjectAlbania
Посмотреть сообщение
Dude just wait,Geez.