How to make ..
#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


Messages In This Thread
How to make .. - by berz - 06.02.2011, 13:17
Re: How to make .. - by bartje01 - 06.02.2011, 13:23
Re: How to make .. - by berz - 06.02.2011, 13:28
Re: How to make .. - by Zack9764 - 06.02.2011, 13:39
Re: How to make .. - by berz - 06.02.2011, 13:40
Re: How to make .. - by Zack9764 - 06.02.2011, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)