/a Chat color PLEASE HELP
#1

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?!?!
Reply
#2

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.
Reply
#3

Use colors macro in front of Text. , example :

pawn Код:
{FF0000} , {FFFFFF}
Reply
#4

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

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.
Reply
#6

yes lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)