Server chat in 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)
+--- Thread: Server chat in Console? (
/showthread.php?tid=422602)
Server chat in Console? -
Youtube12 - 14.03.2013
How to make the server chat in the "samp-server.exe console" ?
Re: Server chat in Console? -
DaRk_RaiN - 14.03.2013
4char
Re: Server chat in Console? -
Glad2BeHere - 14.03.2013
in ur gamemode ensure that onplayertext return value= true/ 1
This is what i mean.........
pawn Код:
public OnPlayerText(playerid, text[])
{
return 1;
}
//or
public OnPlayerText(playerid, text[])
{
return true;
}
Re: Server chat in Console? -
Bikken - 14.03.2013
-Wrong place-
AW: Server chat in Console? -
Youtube12 - 14.03.2013
Quote:
Originally Posted by Glad2BeHere
in ur gamemode ensure that onplayertext return value= true/ 1
This is what i mean.........
pawn Код:
public OnPlayerText(playerid, text[]) {
return 1; } //or public OnPlayerText(playerid, text[]) {
return true; }
|
Not working
Re: Server chat in Console? - Patrick - 14.03.2013
im not really sure what you mean a console command or to show player's chat in game but
as i understand you want to monitor what player's are talking in game so try this
pawn Код:
public OnPlayerText(playerid, text[])
{
new name[24];
GetPlayerName(playerid, name, sizeof(name));
printf("[CHAT]: %s[%d]: %s",name,playerid,text[0]);
return 1;
}
Re: Server chat in Console? -
MP2 - 14.03.2013
You're either returning 0 in OnPlayerText (though IIRC this still shows the text in the console..) or you have the 'chatlog' server var (or a similar name) set to off.
AW: Re: Server chat in Console? -
Youtube12 - 14.03.2013
Quote:
Originally Posted by pds2012
im not really sure what you mean a console command or to show player's chat in game but
as i understand you want to monitor what player's are talking in game so try this
pawn Код:
public OnPlayerText(playerid, text[]) { new name[24]; GetPlayerName(playerid, name, sizeof(name)); printf("[CHAT]: %s[%d]: %s",name,playerid,text[0]); return 1; }
|
Perfect thank you dude :>
Re: Server chat in Console? -
Scenario - 14.03.2013
https://sampwiki.blast.hk/wiki/Server.cfg
Check where it says "chatlogging", it's probably disabled for you.
@MP2: Yes, when you return 0 in OnPlayerText, it still shows the messages in the server console.
@pds2012: While that IS a solution, the SA:MP server does it automatically. It's a matter of the wrong variable being set in the server.cfg file.