Raised This Month: $ Target: $400
 0% 

website top


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ultralord
Senior Member
Join Date: Oct 2008
Old 03-11-2009 , 06:54   website top
Reply With Quote #1

hello.. is possible to do one command like /top and the server shows me one site.. on the window ,
is that possible?

thanks
Ultralord is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-11-2009 , 07:00   Re: website top
Reply With Quote #2

You want it so when you say a command it brings up a MOTD displaying your website?
BOYSplayCS is offline
Ultralord
Senior Member
Join Date: Oct 2008
Old 03-11-2009 , 07:11   Re: website top
Reply With Quote #3

yes something like that
Ultralord is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-11-2009 , 07:17   Re: website top
Reply With Quote #4

Search for a plugin by Johnny Got His Gun the plugin name is: "Forum Mod" and it is exactly what you described.
BOYSplayCS is offline
Ultralord
Senior Member
Join Date: Oct 2008
Old 03-11-2009 , 07:31   Re: website top
Reply With Quote #5

thnx for info.. i check his plugin but i dont want so much things only show one html site nothing else
Ultralord is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-11-2009 , 10:14   Re: website top
Reply With Quote #6

PHP Code:
#include <amxmodx>
public plugin_init()
{
 
register_plugin("Test""1.0""Fysiks")
 
register_clcmd("say /top""showtop"0" - show top players website")
}
public 
showtop(id)
{
 
show_motd(id"motd.txt""MOTD Title")

Replace "motd.txt" with your url .
__________________

Last edited by fysiks; 03-11-2009 at 16:15.
fysiks is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 03-11-2009 , 13:53   Re: website top
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
Replace "motd.txt" with your url .
+ replace "MOTD Title" with what title you want.
SnoW is offline
Send a message via MSN to SnoW
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-11-2009 , 15:44   Re: website top
Reply With Quote #8

@fysiks
Your plugin won't work, because you forgot a } to close the plugin_init().
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-11-2009 , 16:17   Re: website top
Reply With Quote #9

Quote:
Originally Posted by Exolent[jNr] View Post
@fysiks
Your plugin won't work, because you forgot a } to close the plugin_init().
Thanks for noticing (fixed in my post). I was copying mulitple lines from my test plugin (which has a million random functions) and forgot to tag that brace for copying.
__________________
fysiks is offline
Ultralord
Senior Member
Join Date: Oct 2008
Old 03-11-2009 , 19:23   Re: website top
Reply With Quote #10

nice it works.. but only one problem i put my site and i saw it on the game but scroll bars on the right doesnt work.. i cant scroll to see the site :S

anything to fix that?

thanks a lot
Ultralord 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 09:02.


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