SA-MP Forums Archive
Live Chat in rcon console? - 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: Live Chat in rcon console? (/showthread.php?tid=72053)



Live Chat in rcon console? - SEC - 05.04.2009

hey guyz,
Is it possible to make an rcon admin see the chat ?
Like this:
Код:
public OnPlayerText(playerid, text[])
{
  new string2[128];
  new name[MAX_PLAYER_NAME+1];
  GetPlayerName(playerid, name, sizeof(name));
  format(string2, sizeof(string), "%s[%i]: %s",name,playerid,text);
  print(string2);
  //but here I need something to send it to the rcon console !?
	return 0;
}
Hope you can help me.


Re: Live Chat in rcon console? - Sandra18[NL] - 05.04.2009

the print-function will print the text in the console...


Re: Live Chat in rcon console? - SEC - 05.04.2009

I already tested this function but when an admin is connected to the rcon console he doesnґt see any massage...


Re: Live Chat in rcon console? - SEC - 05.04.2009

Nobody there who can help?


Re: Live Chat in rcon console? - friped93 - 05.04.2009

Ok look try this

Код:
public OnPlayerText(playerid, text[])
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
  new string2[128];
  new name[MAX_PLAYER_NAME+1];
  GetPlayerName(playerid, name, sizeof(name));
  format(string2, sizeof(string2), "%s[%i]: %s",name,playerid,text);
  if(IsPlayerAdmin(i)){
  SendClientMessage(i,>color<,string2);} // change >color< to what color you want text to be :D
  //but here I need something to send it to the rcon console !?
 }
	return 0;
}



Re: Live Chat in rcon console? - SEC - 05.04.2009

SendClientMessage wonґt send any messages to the rcon console


Re: Live Chat in rcon console? - XeoN_13 - 05.04.2009

Quote:
Originally Posted by | Friped |
Ok look try this

Код:
public OnPlayerText(playerid, text[])
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
  new string2[128];
  new name[MAX_PLAYER_NAME+1];
  GetPlayerName(playerid, name, sizeof(name));
  format(string2, sizeof(string), "%s[%i]: %s",name,playerid,text);
  if(IsPlayerAdmin(i)){
  SendClientMessage(i,>color<,string2);} // change >color< to what color you want text to be :D
  //but here I need something to send it to the rcon console !?
 }
	return 0;
}
gives this errors:
Код:
C:\Users\ASD\Desktop\pawno\ASD.pwn(221) : error 017: undefined symbol "string"
C:\Users\ASD\Desktop\pawno\ASD.pwn(221) : error 029: invalid expression, assumed zero
C:\Users\ASD\Desktop\pawno\ASD.pwn(221) : warning 215: expression has no effect
C:\Users\ASD\Desktop\pawno\ASD.pwn(228) : error 010: invalid function or declaration



Re: Live Chat in rcon console? - friped93 - 05.04.2009

Quote:
Originally Posted by SEC
SendClientMessage wonґt send any messages to the rcon console
is it to the admin thats loged in or the server console??


Re: Live Chat in rcon console? - SEC - 05.04.2009

i mean the rcon.exe console.


Re: Live Chat in rcon console? - XeoN_13 - 05.04.2009

i think he means if the server is hoted and ur not on the same pc as server ,...