RCON Possibility?
#1

Hey,

I'm curious if its possible to add where if a player is talking in a command for an RP server, like /o or /ooc it would also broadcast is to the RCON CLIENT?

Note: I'm speaking of REMOTE RCON

I'll paste a command here for an example:


Код:
if (strcmp(cmd, "/o") == 0){
if(MUTED_SPECIAL[playerid]==0){
  if(MUTED[playerid]==0){
	new playername[MAX_PLAYER_NAME];
		if (strlen(cmdtext) > 3){
		for(new i=0; i<APPROX_PLAYERS; i++){
		if(GetDistanceBetweenPlayers(playerid,i) < 50) {
			GetPlayerName(playerid, playername, sizeof(playername));
			format(string, sizeof(string), "(OOC-L) %s: (( %s ))", playername, cmdtext[3]);
			SendClientMessage(i,COLOR_GREY,string);
			printf(string);
		}}
		}else{
			format(string, sizeof(string), "USAGE: /o [Message]");
			SendMessage(playerid, string);
		}
  }else{
	SendClientMessage(playerid,COLOR_BRIGHTRED,"(INFO) You cannot use this feature as you have been muted by server security personnel.");
	}
}
	return 1;
}
Reply


Messages In This Thread
RCON Possibility? - by Jason_Larson - 02.05.2009, 05:26
Re: RCON Possibility? - by [HiC]TheKiller - 02.05.2009, 05:34
Re: RCON Possibility? - by Jason_Larson - 02.05.2009, 05:44
Re: RCON Possibility? - by yom - 02.05.2009, 05:59
Re: RCON Possibility? - by Jason_Larson - 02.05.2009, 09:13

Forum Jump:


Users browsing this thread: 1 Guest(s)