SA-MP Forums Archive
[IDEA] Shell printer - 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: [IDEA] Shell printer (/showthread.php?tid=85515)



[IDEA] Shell printer - StrickenKid - 08.07.2009

for us who use linux servers and connect through SSH. it would be nice to have the server "print" messages go though the SSH client.

for example:

main()
{
shell("-----------------");
shell("samp server by your name here started!");
shell("-----------------");
}

because on a vps you don't see the server window so "print" is useless....

i might try to make it my self but i have no idea how to script plugins but im sure i could learn

what do you think?


Re: [IDEA] Shell printer - JaTochNietDan - 08.07.2009

There is actually a way of practically doing this yourself using Linux commands! Simple!

Код:
tail -f yourserverdirectory/server_log.txt
Put that in your SSH Terminal and it will print your server activity to your terminal! Printing will be useful again


Re: [IDEA] Shell printer - StrickenKid - 08.07.2009

Oo0Oo N13Z!!!! (oooooo nice) lol thanks lotts man! works perfect!

edit: is there a way to have it add "SAMP SERVER: and stuff here"
like: "SAMP SERVER: [18:03:51] [chat] [ethan]: om nom nom nom nom"


Re: [IDEA] Shell printer - JaTochNietDan - 08.07.2009

Quote:
Originally Posted by <__Ǝthan__>
Oo0Oo N13Z!!!! (oooooo nice) lol thanks lotts man! works perfect!

edit: is there a way to have it add "SAMP SERVER: and stuff here"
like: "SAMP SERVER: [18:03:51] [chat] [ethan]: om nom nom nom nom"
Change OnPlayerText to return 0, and use SendPlayerMessageToAll instead of the normal OnPlayerText, then simply create that print with printf , also this should be moved to scripting discussion now


Re: [IDEA] Shell printer - StrickenKid - 08.07.2009

doh, i should have thought of that, and sure now i got it, you can either move it or just delete it

Thanks again!