Raised This Month: $32 Target: $400
 8% 

Dynamic MOTD 3.0


Post New Thread Reply   
 
Thread Tools Display Modes
Paparazziv2
Senior Member
Join Date: Feb 2011
Location: Chile, La Serena
Old 01-15-2012 , 12:52   Re: Dynamic MOTD (updated 2011-11-27)
Reply With Quote #101

with this works? motd.php?server_name={SERVER_NAME}&name={NAME }&steamid={STEAM_ID}&map={CURRENT_MAP}&next_m ap={NEXT_MAP}"

and.. thx very much!
__________________
Sorry for the bad english please.

Paparazziv2 is offline
Send a message via MSN to Paparazziv2
mickael002
Senior Member
Join Date: Jul 2010
Old 01-16-2012 , 14:14   Re: Dynamic MOTD (updated 2011-11-27)
Reply With Quote #102

Yes its work

Last edited by mickael002; 01-16-2012 at 14:15.
mickael002 is offline
mickael002
Senior Member
Join Date: Jul 2010
Old 01-17-2012 , 03:48   Re: Dynamic MOTD (updated 2011-11-27)
Reply With Quote #103

For cons I can not get back more than 5 GET variables in my url, otherwise the motd does not start ...

http://mywebsite.com/motd.php?server_name={SERVER_NAME}&name={NAME }&steamid={STEAM_ID}&server_ip={SERVER_IP}&jo ueurs_ip={IP}

PHP Code:
<?php
    $player_name 
$_GET['name'];
    
$server_name $_GET['server_name'];
    
$steamid $_GET['steamid'];
    
$server_ip $_GET['server_ip'];
    
$server_port $_GET['server_port'];
    
$next_map $_GET['next_map'];
    
$joueurs $_GET['joueurs'];
    
$joueurs_max $_GET['joueurs_max'];
    
$joueur_ip $_GET['joueurs_ip'];    
    
$map $_GET['map'];

echo 
$steamid;
// Exemple ...
?>



Need help please

Last edited by mickael002; 01-17-2012 at 03:49.
mickael002 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-17-2012 , 07:58   Re: Dynamic MOTD (updated 2011-11-27)
Reply With Quote #104

Quote:
Originally Posted by mickael002 View Post
For cons I can not get back more than 5 GET variables in my url, otherwise the motd does not start ...

http://mywebsite.com/motd.php?server_name={SERVER_NAME}&name={NAME }&steamid={STEAM_ID}&server_ip={SERVER_IP}&jo ueurs_ip={IP}

PHP Code:
<?php
    $player_name 
$_GET['name'];
    
$server_name $_GET['server_name'];
    
$steamid $_GET['steamid'];
    
$server_ip $_GET['server_ip'];
    
$server_port $_GET['server_port'];
    
$next_map $_GET['next_map'];
    
$joueurs $_GET['joueurs'];
    
$joueurs_max $_GET['joueurs_max'];
    
$joueur_ip $_GET['joueurs_ip'];    
    
$map $_GET['map'];

echo 
$steamid;
// Exemple ...
?>



Need help please
[QUOTE=psychonic;1387386]
Note: Due to limitations in the engine, the expanded url has a max length of 255 characters.[QUOTE]
The actual limit is about half of that. Don't know the exact value.
psychonic is offline
mickael002
Senior Member
Join Date: Jul 2010
Old 01-17-2012 , 09:43   Re: Dynamic MOTD (updated 2011-11-27)
Reply With Quote #105

Ok thank you for the info.

I did all the rest of the web query.

I like it all
mickael002 is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 02-12-2012 , 16:27   Re: Dynamic MOTD (updated 2011-11-27)
Reply With Quote #106

Hmm....just tossing out thoughts from my head here, but could someone use the related code for the dynamicmotd_big CVAR, and create a plugin that opens the big or "fullscreen" MOTD when someone uses "motd" in chat/console, and when someone connects to the server?

I've actually picked this plugin apart before to pinpoint the code that makes the MOTD bigger, but when I got to trying to rework the existing "motd" command to make it open the big MOTD, and trying to make the big MOTD open when someone connects to the server, I just end up sitting there, stumped.
404UserNotFound is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 03-08-2012 , 11:32   Re: Dynamic MOTD (updated 2012-3-8)
Reply With Quote #107

I just updated the OP (at psychonic's request) to include some updates I wrote:

Version 2.2.2:
  • Plugin now respects the value of sv_visiblemaxplayers if set
  • Added {BOTPLAYERS} to pass the number of bots in the server
__________________
DarthNinja is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 05-02-2012 , 01:45   Re: Dynamic MOTD (updated 2012-3-8)
Reply With Quote #108

Is there anyway to use this plugin to get the larger MOTD windows to work with the webshortcuts plugin? I am looking for a way to use !forum and have it display in the large window. The small window gives it a very limited view.
DeathMaster is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 05-03-2012 , 11:39   Re: Dynamic MOTD (updated 2012-3-8)
Reply With Quote #109

Quote:
Originally Posted by DeathMaster View Post
Is there anyway to use this plugin to get the larger MOTD windows to work with the webshortcuts plugin? I am looking for a way to use !forum and have it display in the large window. The small window gives it a very limited view.
Use Web Shortcuts (Redux) as opposed to the other Web Shortcuts version I see you posting on.

I did notice the problem you posted in the latter so I'll see if I can get a fixed version for you.
__________________

Last edited by 11530; 05-03-2012 at 11:58.
11530 is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 05-04-2012 , 00:09   Re: Dynamic MOTD (updated 2012-3-8)
Reply With Quote #110

Quote:
Originally Posted by 11530 View Post
Use Web Shortcuts (Redux) as opposed to the other Web Shortcuts version I see you posting on.

I did notice the problem you posted in the latter so I'll see if I can get a fixed version for you.
I just tried the new redux version and it still has the same problems. When you die the page refreshes.
DeathMaster 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 18:36.


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