Raised This Month: $ Target: $400
 0% 

Dynamic MOTD 3.0


Post New Thread Reply   
 
Thread Tools Display Modes
deathcurse
Senior Member
Join Date: Jun 2006
Location: UK
Old 01-25-2011 , 08:35   Re: Dynamic MOTD
Reply With Quote #31

This is great, thanks Psychonic! Going to be using this on our new motd pages.

EDIT: Just a heads up, when a user types "motd" to bring the motd window back up, the variables don't seem to be working.
__________________
Clan of Doom: www.clanofdoom.co.uk

Last edited by deathcurse; 01-25-2011 at 09:12.
deathcurse is offline
Logifl3x
Member
Join Date: Dec 2010
Old 02-11-2011 , 23:14   Re: Dynamic MOTD
Reply With Quote #32

Can someone please post a screenshot of this in action?
Logifl3x is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 02-12-2011 , 02:28   Re: Dynamic MOTD
Reply With Quote #33

Open up any game, connect to any server, take a look at the MOTD.
That's how it looks.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 02-12-2011 , 03:10   Re: Dynamic MOTD
Reply With Quote #34

Quote:
Originally Posted by Monkeys View Post
Open up any game, connect to any server, take a look at the MOTD.
That's how it looks.
I opened up minesweeper, but I don't see anything...
__________________
DarthNinja is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 02-12-2011 , 03:14   Re: Dynamic MOTD
Reply With Quote #35

Quote:
Originally Posted by DarthNinja View Post
I opened up minesweeper, but I don't see anything...
You forgot step 2 & 3, silly.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
Bloodlvst
Senior Member
Join Date: Jul 2007
Old 02-12-2011 , 09:13   Re: Dynamic MOTD
Reply With Quote #36

Psych, I understand the intent of the plugin, but I'm trying to figure out putting it into practice.

Am I to understand I'll create a basic PHP script that uses the GET command to grab things from the plugin, and then echo them?

And will it work on a remote webserver or does it have to be directly in the motd.txt ?
__________________
Quote:
skywalker: I have cs source client 5 how to upgrade to client 7
BAILOPAN: oh
Bloodlvst is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-12-2011 , 10:51   Re: Dynamic MOTD
Reply With Quote #37

Quote:
Originally Posted by Bloodlvst View Post
Psych, I understand the intent of the plugin, but I'm trying to figure out putting it into practice.

Am I to understand I'll create a basic PHP script that uses the GET command to grab things from the plugin, and then echo them?

And will it work on a remote webserver or does it have to be directly in the motd.txt ?
All this does is allow you to put variables from the game into the motd url, customized per player/server.

You can put them anywhere in the url, as a subdomain, dir name, key or value in the GET string, etc. The latter would be the most common.

Example:
Code:
http://example.com/motd.php?name={NAME}
PHP Code:
<?php
$name 
$_GET['name'];
printf('Welcome to the server, %s!'htmlspecialchars($name));
"[SMACK] BP{N}" joins the server
Url "http://example.com/motd.php?name=%5BSMACK%5D++BP%7BN%7D" is sent to him as motd.
Motd is blank white page with black text at top saying "Welcome to the server, [SMACK] BP{N}!".
psychonic is offline
UltraViolent
Junior Member
Join Date: Feb 2011
Old 02-19-2011 , 04:53   Re: Dynamic MOTD
Reply With Quote #38

could you add the acual playernumber ????
i would realy need this !!!
UltraViolent is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-19-2011 , 11:12   Re: Dynamic MOTD
Reply With Quote #39

Quote:
Originally Posted by UltraViolent View Post
could you add the acual playernumber ????
i would realy need this !!!
I don't know what you mean. Userid is available and I cannot think of a single use for client id outside the actual game.
psychonic is offline
UltraViolent
Junior Member
Join Date: Feb 2011
Old 02-19-2011 , 17:26   Re: Dynamic MOTD
Reply With Quote #40

no no i mean the nuber of player in the server...
UltraViolent is offline
Reply



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 12:09.


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