Different color for admins when they chat? - 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: Different color for admins when they chat? (
/showthread.php?tid=495525)
Different color for admins when they chat? -
Ercha - 17.02.2014
How to make like when admins are chating in the main chat, they'll have a different color, not like the main chat's color,but for example green?
Re : Different color for admins when they chat? -
mirou123 - 17.02.2014
Hi.Try this
Код:
public OnPlayerText(playerid, text[])
{
new string[124];
if(PlayerVar[playerid][AdminLevel] > 0) //change this to suit your script
{
format(string, sizeof(string), "%s says: %s",PlayerName(playerid), text);
SendClientMessageToAll(0x00FF00FF, string);
}
return 0;
}