AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   website top (https://forums.alliedmods.net/showthread.php?t=87403)

Ultralord 03-11-2009 06:54

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

thanks

BOYSplayCS 03-11-2009 07:00

Re: website top
 
You want it so when you say a command it brings up a MOTD displaying your website?

Ultralord 03-11-2009 07:11

Re: website top
 
yes something like that

BOYSplayCS 03-11-2009 07:17

Re: website top
 
Search for a plugin by Johnny Got His Gun the plugin name is: "Forum Mod" and it is exactly what you described.

Ultralord 03-11-2009 07:31

Re: website top
 
thnx for info.. i check his plugin but i dont want so much things only show one html site nothing else

fysiks 03-11-2009 10:14

Re: website top
 
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 :).

SnoW 03-11-2009 13:53

Re: website top
 
Quote:

Originally Posted by fysiks (Post 778454)
Replace "motd.txt" with your url :).

+ replace "MOTD Title" with what title you want.

Exolent[jNr] 03-11-2009 15:44

Re: website top
 
@fysiks
Your plugin won't work, because you forgot a } to close the plugin_init().

fysiks 03-11-2009 16:17

Re: website top
 
Quote:

Originally Posted by Exolent[jNr] (Post 778636)
@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.

Ultralord 03-11-2009 19:23

Re: website top
 
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


All times are GMT -4. The time now is 09:02.

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