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

Solved Stats to show in motd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lantimilan
Senior Member
Join Date: May 2016
Old 04-04-2020 , 02:35   Stats to show in motd
Reply With Quote #1

Hello its possible to show some stats from mysql in cs from motd, i have stats in my link : http://lspublic.com/stats

Last edited by lantimilan; 04-04-2020 at 11:11.
lantimilan is offline
Send a message via MSN to lantimilan
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-04-2020 , 06:55   Re: Stats to show in motd
Reply With Quote #2

Simply display the link in the MOTD?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
lantimilan
Senior Member
Join Date: May 2016
Old 04-04-2020 , 07:46   Re: Stats to show in motd
Reply With Quote #3

how to make what code to use for motd.txt ?
lantimilan is offline
Send a message via MSN to lantimilan
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 04-04-2020 , 08:23   Re: Stats to show in motd
Reply With Quote #4

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("Stats_Motd""1.0""Author");
    
register_clcmd("say /stats""cmdMOTD");
    
register_clcmd("say_team /stats""cmdMOTD");
}

public 
cmdMOTD(id)
{
    
show_motd(id"http://lspublic.com/stats""Stats");

alferd is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-04-2020 , 09:27   Re: Stats to show in motd
Reply With Quote #5

Just the link. You can use this plugin - https://forums.alliedmods.net/showthread.php?t=297627

Code:
/stats = http://lspublic.com/stats
__________________

Last edited by OciXCrom; 04-04-2020 at 09:28.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 04-04-2020 , 09:36   Re: Stats to show in motd
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
Just the link. You can use this plugin - https://forums.alliedmods.net/showthread.php?t=297627

Code:
/stats = <a href="http://lspublic.com/stats" target="_blank" rel="nofollow noopener">http://lspublic.com/stats</a>
Very good
alferd is offline
lantimilan
Senior Member
Join Date: May 2016
Old 04-04-2020 , 11:11   Re: Stats to show in motd
Reply With Quote #7

Thanks very much OciXCrom and Alfred for your help
lantimilan is offline
Send a message via MSN to lantimilan
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 13:48.


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