ShowPlayerMarkers - 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: ShowPlayerMarkers (
/showthread.php?tid=463174)
ShowPlayerMarkers -
knackworst - 10.09.2013
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
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?
Re: ShowPlayerMarkers -
Konstantinos - 10.09.2013
Change to:
pawn Код:
(R * 16777216) + (G * 65536) + (B*256) + 255
// R G B A (FF)
Re: ShowPlayerMarkers -
knackworst - 10.09.2013
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