Need a little help
#1

Whats up guys, I have this problem, I'm trying to make it so whenever someone calls 911 it does "SetPlayerMarkerForPlayer" and it sets the players marker for the cops, it sets the players color to what I want it to but, it doesn't show the players marker on the minimap, but when I turn on markers "ShowPlayerMarkers(1);" it does, but at the same time you can see all the other players because their names are different colors IE: Grove Street Famlies (Color green) all my families / factions have colored names so everyone sees everyones makers. I've made "ShowPlayerMarkers(1);" "ShowPlayerMarkers(0);" again, can someone please help me?

Here is my code, is there something wrong with it?:

pawn Код:
new turner[MAX_PLAYER_NAME];
            new wanted[128];
            GetPlayerName(playerid, turner, sizeof(turner));
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: We have alerted all units in the area.");
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "Thank you for reporting this incident");
            format(wanted, sizeof(wanted), "Dispatch: All Units IA: Caller: %s",turner);
            SendTeamBeepMessage(1, TEAM_CYAN_COLOR, wanted);
            format(wanted, sizeof(wanted), "Dispatch: Incident: %s",text);
            SendTeamMessage(1, TEAM_CYAN_COLOR, wanted);
            SendClientMessage(playerid, COLOR_GRAD2, "  They Hung Up...");
            Mobile[playerid] = 255;
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                  if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
                  {
                        SetPlayerMarkerForPlayer(i,playerid,0xa5df00ff);
                        SetTimer("MarkersOff", 180000, 0);
                    }
                }
            }
            SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
            return 0;
        }
Reply
#2

Код:
ShowPlayerMarkers(1);
Use transparent color OnPlayerConnect
Код:
0xFFFFFF00
Reply
#3

So what does the color code do and where does it go?
Reply
#4

Cause all my families / factions have colored names, would I put it like this SetPlayerColor(playerid, 0xFFFFFF00);?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)