SA-MP Forums Archive
Few questiona about the map and score board - 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)
+--- Thread: Few questiona about the map and score board (/showthread.php?tid=573562)



Few questiona about the map and score board - Zloto - 08.05.2015

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


Re: Few questiona about the map and score board - ihatetn931 - 08.05.2015

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(); 



Re: Few questiona about the map and score board - J4Rr3x - 08.05.2015

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