help with /me and /shout - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with /me and /shout (
/showthread.php?tid=210856)
help with /me and /shout -
THE_KNOWN - 14.01.2011
guys these are mt code in zcmd.
Code:
COMMAND:me(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /me [action]");
GetPlayerName(playerid, Name, sizeof(Name));
format(String, sizeof(String), "%s %s.", Name, params);
SendClientMessageToAll(COLOR_ME, String);
return 1;
}
COMMAND:shout(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE:/shout [MESSAGE]");
GetPlayerName(playerid, Name, sizeof(Name));
format(String, sizeof(String), "%s SHOUTS %s", Name, params);
SendClientMessageToAll(0x6666FF, String);
return 1;
}
but when i use them in game i dont get the colour i defined. /me comes in pale green and shout in dark green
#define COLOR_ME 0xFF9966
Re: help with /me and /shout -
Deal-or-die - 14.01.2011
what colours do you want them?
Re: help with /me and /shout -
Tee - 14.01.2011
It could be that you have another me and shout command in your script, that happened to me once and it was because of 2 "/me commands"
Re: help with /me and /shout -
THE_KNOWN - 14.01.2011
@deal-or-dia the color codes are specified in the command but still th output turns out to be different.
@tee even i got that doubt and went through my script again and they didnt repeat
Re: help with /me and /shout -
THE_KNOWN - 14.01.2011
solved.
solution: set alpha value xD