SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 08/07/2009, 01:41 AM   #1
StrickenKid
Gangsta
 
Join Date: Feb 2009
Posts: 773
Reputation: 41
Default [IDEA] Shell printer

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?
StrickenKid is offline  
Old 08/07/2009, 01:59 AM   #2
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 4,257
Reputation: 363
Default Re: [IDEA] Shell printer

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

Code:
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
__________________
Releases:
[Includes]: [jBan] | [jBanLite]
[Plugins]: [FileManager] | [Execute]
[Applications]: [Remote Administrator *NEW] | [Script King] | [RCON GUI]
JaTochNietDan is offline  
Old 08/07/2009, 02:11 AM   #3
StrickenKid
Gangsta
 
Join Date: Feb 2009
Posts: 773
Reputation: 41
Default Re: [IDEA] Shell printer

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"
StrickenKid is offline  
Old 08/07/2009, 02:15 AM   #4
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 4,257
Reputation: 363
Default Re: [IDEA] Shell printer

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
__________________
Releases:
[Includes]: [jBan] | [jBanLite]
[Plugins]: [FileManager] | [Execute]
[Applications]: [Remote Administrator *NEW] | [Script King] | [RCON GUI]
JaTochNietDan is offline  
Old 08/07/2009, 02:19 AM   #5
StrickenKid
Gangsta
 
Join Date: Feb 2009
Posts: 773
Reputation: 41
Default Re: [IDEA] Shell printer

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

Thanks again!
StrickenKid is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] [REL] Execute JaTochNietDan Plugin Development 59 08/08/2014 07:33 PM
Anyone have an idea ? ArTisT Help Archive 0 21/03/2010 12:29 PM
anyone has an idea on how to do this? aircombat Help Archive 2 28/02/2010 10:27 PM
[Need Help With An Idea] Doppeyy Help Archive 1 02/12/2009 04:48 PM
[HELP] Anyone got any idea? FreddeN Help Archive 7 15/06/2009 12:00 PM


All times are GMT. The time now is 08:35 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.