ShowPlayerMarkers
#1

Hello

I have this code under OnGamModeInit:
pawn Код:
ShowPlayerMarkers(1);
To show the player markers everywhere, however when I test it, it does not show the other player's marker.

Hence, it must be a problem when I use SetPlayerColor (since if you end SetPlayerColor with 00 instead of FF, it doesn't show the markers)

here's my code for the color command
pawn Код:
CMD:color(playerid,params[])
{
    static R, G, B;
    if (sscanf(params, "iii", R,G,B)) return SendClientMessage(playerid, 0xff0000aa, "Use: /color <0-255> <0-255> <0-255>");
    SendClientMessage(playerid,(R * 16777216) + (G * 65536) + (B*256), "New color");
    SetPlayerColor(playerid, (R * 16777216) + (G * 65536) + (B*256));
    return 1;
}
So how do I change the alpha for the player color on this command? So that when a player uses the command, his marker can be shown on the mini radar?
Reply
#2

Change to:
pawn Код:
(R * 16777216) + (G * 65536) + (B*256) + 255
//   R                G           B      A (FF)
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Change to:
pawn Код:
(R * 16777216) + (G * 65536) + (B*256) + 255
Thanks ^^
We'll see if it works next time we test
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)