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

[REQ] Display top15 instead of motd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoldNux
Senior Member
Join Date: Mar 2018
Old 03-10-2018 , 23:34   [REQ] Display top15 instead of motd
Reply With Quote #1

I would like the /top15 list to be displayed when you enter my server.
Is that hard to do? If not, maybe someone could help me out.

Thanks!
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731
GoldNux is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-11-2018 , 06:19   Re: [REQ] Display top15 instead of motd
Reply With Quote #2

its a little tricky...do you have sql version of csstats or classical with .dat ?
JocAnis is offline
sanimare
Senior Member
Join Date: Sep 2010
Old 03-11-2018 , 06:32   Re: [REQ] Display top15 instead of motd
Reply With Quote #3

I have somehow motd and top15 when i press TAB it refresh itself, and when i delete everything from motd.txt i see top15, maybe it's some plugin stats modification, i don't know..

Last edited by sanimare; 03-11-2018 at 06:44.
sanimare is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 03-11-2018 , 06:34   Re: [REQ] Display top15 instead of motd
Reply With Quote #4

just remove motd.txt from cstrike folder

Add this plugin

PHP Code:

#include < amxmodx >

public client_putinserver(id)
{
  
set_task(2.0,"show_top",id);
}

public 
show_top(id)

   if(
is_user_connected(id))
    
client_cmd(id,"say /top15");


Last edited by indraraj striker; 03-11-2018 at 07:10.
indraraj striker is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 03-11-2018 , 07:08   Re: [REQ] Display top15 instead of motd
Reply With Quote #5

Quote:
Originally Posted by indraraj striker View Post
just remove motd.txt from cstrike folder

Add this plugin

PHP Code:

#include < amxmodx >

public client_putinserver(id)
{
  
set_task(2.0,"show_top",id);
}

public 
show_top(id)
{
  
client_cmd(id,"say /top15");

You should check if user connected before showing the motd because he can disconnect in those 2 sec.
__________________
JusTGo is offline
GoldNux
Senior Member
Join Date: Mar 2018
Old 03-11-2018 , 08:57   Re: [REQ] Display top15 instead of motd
Reply With Quote #6

Quote:
Originally Posted by JusTGo View Post
You should check if user connected before showing the motd because he can disconnect in those 2 sec.
Like this?

Code:
#include < amxmodx > public client_putinserver(id) {   client_cmd(id,"say /top15"); }
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731
GoldNux is offline
GoldNux
Senior Member
Join Date: Mar 2018
Old 03-11-2018 , 09:11   Re: [REQ] Display top15 instead of motd
Reply With Quote #7

Quote:
Originally Posted by indraraj striker View Post
just remove motd.txt from cstrike folder

Add this plugin

PHP Code:

#include < amxmodx >

public client_putinserver(id)
{
  
set_task(2.0,"show_top",id);
}

public 
show_top(id)

   if(
is_user_connected(id))
    
client_cmd(id,"say /top15");

Thank you mate.
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731
GoldNux is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-11-2018 , 09:43   Re: [REQ] Display top15 instead of motd
Reply With Quote #8

lol @indraraj striker that was smart and smooth i thought when you delete motd.txt, while connected motd window will be empty haha
JocAnis is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 03-11-2018 , 11:18   Re: [REQ] Display top15 instead of motd
Reply With Quote #9

Quote:
Originally Posted by JocAnis View Post
lol @indraraj striker that was smart and smooth i thought when you delete motd.txt, while connected motd window will be empty haha
LOL xD
indraraj striker is offline
GoldNux
Senior Member
Join Date: Mar 2018
Old 03-11-2018 , 13:29   Re: [REQ] Display top15 instead of motd
Reply With Quote #10

Quote:
Originally Posted by indraraj striker View Post
LOL xD
What do you think about what JusTGo said?
I just dont want my server to crash or something.

Thank you!
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731
GoldNux 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 21:16.


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