10.09.2013, 18:47
Hello
I have this code under OnGamModeInit:
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
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?
I have this code under OnGamModeInit:
pawn Код:
ShowPlayerMarkers(1);
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;
}