read cmds
#1

hi
in my adminfilterscript admins are able to see the commands the players typed. but you can also see /register and /login.
can anyone help me that you can not see /register and /login but all the other commands??

greetings
Reply
#2

You have to post the code that saves them...
Reply
#3

okay that's the code:
Код:
new string[128];
	format(string, sizeof(string), "*** %s (%d) typed: %s", PlayerName(playerid),playerid,cmdtext);
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				if( (PlayerData[i][Level] >= 1) && (i != playerid) )
				{
					SendClientMessage(i, COLOR_GREY, string);
				}
			}
		}
Reply
#4

Код:
if (strcmp(cmdtext,"/register",true,9) != 0 && strcmp(cmdtext,"/login",true,6) != 0)
{
	new string[128];
	format(string, sizeof(string), "*** %s (%d) typed: %s", PlayerName(playerid),playerid,cmdtext);
	for (new i = 0; i < MAX_PLAYERS; i++)
	{
		if (!IsPlayerConnected(i))
		  continue;
		if (PlayerData[i][Level] < 1) || i == playerid)
		  continue;

		SendClientMessage(i, COLOR_GREY, string);
	}
}
Reply
#5

thanks rav
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)