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
#2

Look up print and printf
Reply
#3

Quote:
Originally Posted by [HiC
TheKiller ]
Look up print and printf
I take it you are meaning search forums for it, and you've got to be kidding there's thousands of returns for that. printf will put it in the Server_log.txt if its possible can you tell me how?

What I want is if I'm looking at the SA-MP v0.2x console and I rightclick and click remote console the text of certain commands appears there.
Reply
#4

With all i've tried, i don't think it's possible.
Reply
#5

So this is NOT possible?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)