SetPlayerColor goes to Marker
#1

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;
    }
Reply
#2

Add ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);

EDIT: Nevermind, it disables them totally.
Reply
#3

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

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

Код:
SetPlayerColor(playerid,0xRRGGBB00)
Reply
#4

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

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
Reply
#6

What do you mean?
Reply
#7

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;
    } 
Reply
#8

Ah Thanks! i got it now
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)