SA-MP Forums Archive
Need a little help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need a little help (/showthread.php?tid=92456)



Need a little help - Oi! - 20.08.2009

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;
        }



Re: Need a little help - Khelif - 20.08.2009

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



Re: Need a little help - Oi! - 20.08.2009

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


Re: Need a little help - Oi! - 20.08.2009

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