Color on ProxDetector. - 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: Color on ProxDetector. (
/showthread.php?tid=325888)
Color on ProxDetector. -
ricardo178 - 15.03.2012
Hey guys. I made a simple /me command for my GM, all work good, but i don't know how to set it to rose/pink color...
pawn Код:
CMD:me(playerid, params[])
{
new text[128];
if(!sscanf(params, "s[128]", text))
{
new Name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "%s %s", Name, text);
ProxDetector(10.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
return 1;
}
else return SendClientMessage(playerid, COLOR_BROWN, "USAGE: /me [Text]");
}
Thanks in advance.
Re: Color on ProxDetector. - T0pAz - 15.03.2012
pawn Код:
ProxDetector(10.0, playerid, string, COLOR_PINK, COLOR_PINK, COLOR_PINK, COLOR_PINK, COLOR_PINK);
Re: Color on ProxDetector. -
nmader - 15.03.2012
But of course, you will need to define pink.
pawn Код:
#define COLOR_PINK 0xFF80FFFF
Re: Color on ProxDetector. -
ricardo178 - 15.03.2012
Thank you very much.