Raised This Month: $12 Target: $400
 3% 

MOTD Improvements


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-30-2018 , 22:50   Re: MOTD Improvements
Reply With Quote #11

Quote:
Originally Posted by Ghosted View Post
But editing variables/calling functions through MOTD would be impossible
You are correct that you cannot interact with the server directly in the MOTD. You need to add a third party system to be able to do it (unless the MOTD web browser supports enough Javascript to interact with the server via RCON).
__________________
fysiks is offline
Old 10-22-2018, 04:37
san C
This message has been deleted by asherkin. Reason: Spam.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-22-2018 , 22:23   Re: MOTD Improvements
Reply With Quote #12

Quote:
Originally Posted by san C View Post
I was wondering how /etc/motd is automatically updated (I'm on Ubuntu 10.04, server edition). I found the update-motd manpage via a web search, but that program is not installed on my machine. The /etc/motd file is regularly updated, however. I just don't know how and how often.
This website is based on game servers by Valve (Half-Life and Source), so this thread is about the MOTD the game.

If you are looking for help with Linux/Ubuntu, you should look at sites that provide general support for Linux and/or Ubuntu.
__________________

Last edited by fysiks; 10-22-2018 at 22:25.
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 11-21-2018 , 00:33   Re: MOTD Improvements
Reply With Quote #13

Code:
register_clcmd("say /MOTD", "ClCmd_MotD", 0, "<url>");
Make the MOTD BANK site the URL leads however you want with the login and custom homepage/motd architecture. DRUPAL does stuff like this very easily. It can even fork and host your message to admin/ ticket system if you wanted to include that there too at any point depending on how it goes, if you like it.

Quote:
}
public ClCmd_MotD(id, level, cid) {
new motd[512];
format(motd, 511, "<html><meta http-equiv='Refresh' content='0; URL=https://edon7331.com:1337/bankmanquake'><body BGCOLOR='#FFFFFF'><br><center>We are surfing to the bank now yay!</center></HTML>");
show_motd(id, motd, "MOTD BANK");
}
__________________
DJEarthQuake is offline
poachedegg
Junior Member
Join Date: Nov 2018
Location: China
Old 11-22-2018 , 22:23   Re: MOTD Improvements
Reply With Quote #14

you can use url parameter to send client's message to your website.

Such as:
PHP Code:
www.yourweb.com/account.php?steamid=STEAM_0:1:?????&password=123456 
And let account.php can SELECT client's mysql data by these message.

by the way, youd better encrypt these url parameter and make sure your web code can avoid injection

Last edited by poachedegg; 11-22-2018 at 22:31.
poachedegg is offline
Reply


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

Forum Jump


All times are GMT -4. The time now is 19:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode