Problem
#1

Hello..

this is a script for read all cmds and who type any command..

i want to put the read cmds in color red, anyone know how?

Код:
//==============================================================================
// Read Commands (View commands typed per players)
//==============================================================================
	if(ServerInfo[ReadCmds] == 4)
	{
		format(string, sizeof(string), "*** %s (%d) Command: %s", pName(playerid),playerid,cmdtext);
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
		if(IsPlayerConnected(i))
		{
		if( (AccInfo[i][Level] > AccInfo[playerid][Level]) && (AccInfo[i][Level] > 4) && (i != playerid))
		{
		SendClientMessage(i, grey, string);
		}
		}
		}
	}
Reply
#2

pawn Код:
//==============================================================================
// Read Commands (View commands typed per players)
//==============================================================================
    if(ServerInfo[ReadCmds] == 4)
    {
        format(string, sizeof(string), "*** %s (%d) Command: %s", pName(playerid),playerid,cmdtext);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
        if(IsPlayerConnected(i))
        {
        if( (AccInfo[i][Level] > AccInfo[playerid][Level]) && (AccInfo[i][Level] > 4) && (i != playerid))
        {
        SendClientMessage(i, 0xA10000AA, string);
        }
        }
        }
    }
Reply
#3

Thx, it was usefull
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)