Few questiona about the map and score board
#1

How can i set the names of the players on the scoreboard to be white?
And how can i set a specific player to be other color?
How can I make all the sellable house pickups to display on the little sircle map on the bottom left?
How can i disable all the checkpoint for ammonation and other on the server? The yellow tornadoes
Version 0.3.7 if it has any matter ;p
Reply
#2

To set names on scoreboard to white

PHP код:
SetPlayerColor(playerid,0xFFFFFFFF); 
To set a player to a diffrent color

PHP код:
if(blah blah)
{
    
SetPlayerColor(playerid,COLOR);
}
else
{
    
SetPlayerColor(playerid,0xFFFFFFFF);

To show sellable houses, you need to use
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon

To disable the enter and exits put this under OnGameModeInit
PHP код:
DisableInteriorEnterExits(); 
Reply
#3

1: You can't set two different colors for scoreboard and marker, you can set only one color for both.
2: Use SetPlayerColor (read here: https://sampwiki.blast.hk/wiki/SetPlayerColor) in OnPlayerConnect with random color
pawn Код:
// You can use this:
static const PlayerColors[] =
{
    0xD526D9FF, 0x00FF00FF, 0xFF80FFFF, 0x33CCFFAA,
    0xAFAFAFAA, 0xFFFFFFFF, 0xFF8000FF, 0xFFFF00FF,
    0x0080FFC8, 0xFF0000FF, 0x00FF00FF
};

// In OnPlayerConnect
SetPlayerColor(playerid, PlayerColors[random(sizeof(PlayerColors)]);
3: Use CreateDynamicMapIcon (you need Streamer Plugin by Incognito) or SetPlayerMapIcon (read here: https://sampwiki.blast.hk/wiki/SetPlayerMapIcon)
4: Put 'DisableInteriorEnterExits();' in OnGameModeInit
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)