SA-MP Forums Archive
/a Chat color PLEASE HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: /a Chat color PLEASE HELP (/showthread.php?tid=335477)



/a Chat color PLEASE HELP - HarrySidwell - 18.04.2012

Ok, So This is the /a CMD At the moment...

Код:
CMD:admin(playerid, params[])  {
	if(PlayerInfo[playerid][pAdmin] >= 2) {
		if(!isnull(params)) {

			new
				szMessage[128];

			if(PlayerInfo[playerid][pAdmin] == 2) format(szMessage, sizeof(szMessage), "* Junior Admin %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 3) format(szMessage, sizeof(szMessage), "* General Admin %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 4) format(szMessage, sizeof(szMessage), "* Senior Admin %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 1337) format(szMessage, sizeof(szMessage), "* Head Admin %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 1338) format(szMessage, sizeof(szMessage), "* Server Manger %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 99998) format(szMessage, sizeof(szMessage), "* Co-Executive Admin %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 99999) format(szMessage, sizeof(szMessage), "* Executive Admin %s: %s", GetPlayerNameEx(playerid), params);
			else format(szMessage, sizeof(szMessage), "* Undefined Admin (%i) %s: %s", PlayerInfo[playerid][pAdmin], GetPlayerNameEx(playerid), params);

			SendAdminMessage(COLOR_WHITE, szMessage);
			Log("logs/adminchat.log", szMessage);
		}
		else SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/a)dmin [admin chat]");
	}
	return 1;
What do i change and/or put in this CMD To make the Admin ranks Green, for example,
*Executive Admin John Smith: Blah blah blah* Everything is white but the rank is green, So it'd look like this
*Executive AdminJohn_Smith: Blahblah

CAN ANYONE HELP?

AND HOW DO I DISABLE TUTORIALS?!?!


Re: /a Chat color PLEASE HELP - eglikarost - 18.04.2012

Quote:
Originally Posted by HarrySidwell
Посмотреть сообщение
Ok, So This is the /a CMD At the moment...

Код:
CMD:admin(playerid, params[])  {
	if(PlayerInfo[playerid][pAdmin] >= 2) {
		if(!isnull(params)) {

			new
				szMessage[128];

			if(PlayerInfo[playerid][pAdmin] == 2) format(szMessage, sizeof(szMessage), "* Junior Admin %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 3) format(szMessage, sizeof(szMessage), "* General Admin %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 4) format(szMessage, sizeof(szMessage), "* Senior Admin %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 1337) format(szMessage, sizeof(szMessage), "* Head Admin %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 1338) format(szMessage, sizeof(szMessage), "* Server Manger %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 99998) format(szMessage, sizeof(szMessage), "* Co-Executive Admin %s: %s", GetPlayerNameEx(playerid), params);
			else if(PlayerInfo[playerid][pAdmin] == 99999) format(szMessage, sizeof(szMessage), "* Executive Admin %s: %s", GetPlayerNameEx(playerid), params);
			else format(szMessage, sizeof(szMessage), "* Undefined Admin (%i) %s: %s", PlayerInfo[playerid][pAdmin], GetPlayerNameEx(playerid), params);

			SendAdminMessage(COLOR_WHITE, szMessage);
			Log("logs/adminchat.log", szMessage);
		}
		else SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/a)dmin [admin chat]");
	}
	return 1;
What do i change and/or put in this CMD To make the Admin ranks Green, for example,
*Executive Admin John Smith: Blah blah blah* Everything is white but the rank is green, So it'd look like this
*Executive AdminJohn_Smith: Blahblah

CAN ANYONE HELP?

AND HOW DO I DISABLE TUTORIALS?!?!
Replace WHITE with green or whatever color you want.


Re: /a Chat color PLEASE HELP - .FuneraL. - 18.04.2012

Use colors macro in front of Text. , example :

pawn Код:
{FF0000} , {FFFFFF}



Re: /a Chat color PLEASE HELP - ViruZz - 19.04.2012

You guys shouldnt help him because its just a copy+paste from NGG Gamemode.


Re: /a Chat color PLEASE HELP - Guest9328472398472 - 19.04.2012

Nice using NGRP Script....


On Topic:

Make it like this, this one if for the green (like presented above)

Код:
{FF0000}Executive Admin{FFFFFF}
"{FFFFFF}" just closes where the color stops at.
"{FF0000}" is where the color starts it, is which where you put the HTML Code at, not in the one at the end.


Re: /a Chat color PLEASE HELP - Dude_Lebowski - 19.04.2012

yes lol