How to make ..
#1

Hey all. How i can make that i can see players chat on my server trought rcon tool?
Reply
#2

You automaticly see their chat in your server.exe console ?...
Reply
#3

No, but I want to see their chat on rcon tool
Reply
#4

You mean when you login as an RCON administrator you can see (I'm assuming your an RP server?) local chat?
Reply
#5

Quote:
Originally Posted by Zack9764
Посмотреть сообщение
You mean when you login as an RCON administrator you can see (I'm assuming your an RP server?) local chat?
Exactly
Reply
#6

At the top:
Код:
new Eavesdropping[MAX_PLAYERS]
Код:
if(strcmp(cmd, "/eavesdrop", true) == 0)
{
       if(IsPlayerAdmin(playerid))//An RCON admin. 
       {
            if(Eavesdropping[playerid] == 0)
            {
                 Eavesdropping = 1;
                 SendClientMessage(playerid, 0xBFC0C2FF, " Your now eavesdropping.");
                 return 1;
            }
            else if(Eavesdropping[playerid] == 1)
            {
                 Eavesdropping = 0;
                 SendClientMessage(playerid, 0xBFC0C2FF, " Your no longer eavesdropping.");
                 return 1;
            }
       else
       {
            SendClientMessage(playerid, 0xBFC0C2FF, " Your not an RCON Admin.");
            return 1;
        }
}
And add this:
Код:
forward SendToEavesdropper(color,string[]);
public SendEavesdropper(color,string[]) {
	for(new i=0;i<MAX_PLAYERS;i++) {
	    if(Eavesdropping[i] && IsPlayerAdmin == 1) {
	        SendClientMessage(i,color,string);
	    }
	}
	return 1;
}
Then put

Код:
SendToEavesdropper(COLOR,string);
everywhere after the client message sent that you want RCON admins to hear.

BTW, sorry it took so long. I was AFK.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)