RCON Possibility? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: RCON Possibility? (
/showthread.php?tid=75460)
RCON Possibility? -
Jason_Larson - 02.05.2009
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;
}
Re: RCON Possibility? -
[HiC]TheKiller - 02.05.2009
Look up print and printf
Re: RCON Possibility? -
Jason_Larson - 02.05.2009
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.
Re: RCON Possibility? -
yom - 02.05.2009
With all i've tried, i don't think it's possible.
Re: RCON Possibility? -
Jason_Larson - 02.05.2009
So this is NOT possible?