Jump to content
  • 0

pomoc Barva


Stellet

Dotaz

8 odpovědí na tuto otázku

Recommended Posts

  • 0

ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
 
SetPlayerColor(playerid, BARVA);
Edited by Ray
Link to comment
Share on other sites

  • 0

nechápu tě, mám toto:

 

if(Hrac[playerid][AdminLevel] == 1)
        {
            SetPlayerColor(playerid, COLOR_ORANGE);
            for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid,(COLOR_ORANGE & 0xFFFFFF00));
            Hrac[playerid][Aduty] = 1;
        }

 

Define Color_Orange

#define COLOR_ORANGE 0xFF9A00FF

A když dá že mu to dá tu oranžovou, tak v TAB je oražově, to chci, ale ve hře je vidět šedivě. Chci aby nikdo na mapě nebyl vidět.

Edited by FeedBoss
Link to comment
Share on other sites

  • 0

a nebudu vidět na mapě ale v TAB bude oranžově ?


if(Hrac[playerid][AdminLevel] == 4)
        {
            SetPlayerColor(playerid, COLOR_ORANGE);
            for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(i, playerid, COLOR_ORANGE);
            Hrac[playerid][Aduty] = 4;
        }

EDIT: Teď jsem to zkusil ten kod výše a nejde furt je vidět na mapě.

Edited by FeedBoss
Link to comment
Share on other sites

  • 0

a ukážeš mi jak udělat tyto barvy aby nebyli vidět na mapě ? :))

 

 

#define COLOR_HELPER 0x00D37BFF
#define COLOR_MODERATOR 0xAB76FFFF
#define COLOR_ORANGE 0xFF9A00FF

 

Děkuji :)

Link to comment
Share on other sites

  • 0

Pokud děláš Roleplay server, tak nebudeš mít markery hráčů na mapě, tudíž použij:

ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
Link to comment
Share on other sites

  • 0

Cpeš tam pátý přes deváty, kdyby sis býval přečetl, co ty dvě funkce dělají, mohl jsi tohle mít již dávno z krku.

Řešení je prosté:

Nastavíš si oranžovou barvu, pro ostatní neviditelnou.:

SetPlayerColor(playerid, 0xff9a00ff);
SetPlayerMarkerForPlayer(playerid, playerid, 0xff9a00ff);
for(new i = 0; i < MAX_PLAYERS; i++)
    if(i != playerid)
        SetPlayerMarkerForPlayer(i, playerid, 0xffffff00);
    else
        continue;
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...