Marker shows the wanted
#4

Well the thing I'm not sure about is whether

Код:
ShowPlayerMarkers(0);
sets it so that even if you use SetPlayerMarkerForPlayer then you can't change their marker...

If this is the case then you can do this instead:

Код:
public OnPlayerConnect(playerid)
{
    new name[20];
    GetPlayerName(playerid, name, sizeof(name));

    if(strcmp(name, "the name of the helper", true) != 0)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
             if(IsPlayerConnected(i) == 1)
             {
                  SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00 )); //this will remove the player's marker.
             }
        }
    }
    else
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
             if(IsPlayerConnected(i) == 1)
             {
                 SetPlayerMarkerForPlayer(i, playerid, pick a colour for your helper);
             }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Marker shows the wanted - by JoeDaDude - 28.05.2009, 14:11
Re: Marker shows the wanted - by lol2112 - 28.05.2009, 14:17
Re: Marker shows the wanted - by JoeDaDude - 28.05.2009, 14:45
Re: Marker shows the wanted - by lol2112 - 28.05.2009, 14:57

Forum Jump:


Users browsing this thread: 2 Guest(s)