SA-MP Forums Archive
Problem - 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: Problem (/showthread.php?tid=155638)



Problem - RatHack - 19.06.2010

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);
		}
		}
		}
	}



Re: Problem - Wasim_Cortez - 19.06.2010

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);
        }
        }
        }
    }



Re: Problem - RatHack - 19.06.2010

Thx, it was usefull