SetPlayerMarkerForPlayer
#1

Hi, I've a problem with this command, the marker doesn't appear players... I've try to change a lot of things, always same result, marker doesn't appear.

pawn Код:
if(strcmp(cmd,"/bkf",true)==0 || strcmp(cmd,"/rhelp",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
            {
                if (PlayerInfo[playerid][pRequestingBackup] != 1)
                {
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    UnderscoreToSpace( sendername );
                    format(string, sizeof(string), "Urgence : %s a besoin D'aide tout de suite ! (Point Rouge).", sendername);
                    PlayerInfo[playerid][pRequestingBackup] = 1;
                    for(new i = 0; i < MAX_PLAYERS; i++)
                    {
                        if(IsPlayerConnected(i))
                        {
                            if(PlayerInfo[i][pMember] == 1||PlayerInfo[i][pLeader] == 1)
                            {
                                SetPlayerMarkerForPlayer(i, playerid, 0x999999AA);
                                SendClientMessage(i, TEAM_BLUE_COLOR, string);
                            }
                        }
                    }
                    SendClientMessage(playerid, TEAM_BLUE_COLOR, "Tappez /bkc quand vous n'avez plus besoin d'aide.");
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "Vous avez dйjа fait une demande d'aide!");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "Vous n'кtes pas dans une faction");
            }
        }
        return 1;
    }
Thanks.
Reply
#2

check if have this on your ongamemodeinit

pawn Код:
ShowPlayerMarkers(1);
Reply
#3

Ah, you have right, it's on 0, so it's disable, but, I've I active it, all markers will appear no?
Reply
#4

if you set the player colors 0x??????00 no (?????? can be any number)
Reply
#5

I'll try it, but I think I've already try.
Reply
#6

put onplayerconnect and onplayerspawn

pawn Код:
SetPlayerColor(playerid, 0xFFFFFF00);
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)