AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Web Page in game (https://forums.alliedmods.net/showthread.php?t=47071)

DaDDy 11-09-2006 04:49

Web Page in game
 
i have tried to make this plugin so we can access and post on our forums from ingame as we tend to sit in spec alot sometimes. i have a little bug that u can access the forums and even login.
You just cant scroll the page in any directon.

Code:

#include <amxmodx>
#include <amxmisc>


public plugin_init() { 
   
    register_plugin("In Game Forums","1.0","ICEPOC");       
    register_clcmd("say /forums","motd_forums",0,"Show Forums In Game");
}
 
public motd_forums(id)
{   
    new URL[1024];           
    format(URL,1023,"http://www.rabidzclan.co.uk/forum/");   
    show_motd(id,URL,"forums");
}

Please be gentle with me as this is my very first script and i have tried hard :oops:

SSJ2GOKU 11-09-2006 05:42

Re: Web Page in game
 
is this plugin for counter-strike or for any mod ?

since i saw scrollbars in cs once

DaDDy 11-09-2006 05:55

Re: Web Page in game
 
i am using this for CZ.

The scroll bars are there. the site just doesnt move

organizedKaoS 11-09-2006 13:37

Re: Web Page in game
 
Quote:

Originally Posted by DaDDy (Post 401395)
i am using this for CZ.

The scroll bars are there. the site just doesnt move

Html IFRAME.

I made a plugin a while back for my server which if /donate was typed it brought up the donations page from my webserver and showed it in the motd window.

The only way I could get it to scroll was to place the page in an iframe.

I'm not sure how cs-conditionzero.com was able to scroll in the motd window without iframe but I never got around to figuring out.

DaDDy 11-10-2006 10:29

Re: Web Page in game
 
i am a very scripting noob.
could you tell me how to use iframe or give me a link to where i could learn about that ?

Zenith77 11-10-2006 12:08

Re: Web Page in game
 
There is a solution to this, if you search you might find it (don't remember topic or anything like that).

XxAvalanchexX 11-10-2006 13:43

Re: Web Page in game
 
An iframe would be:

Code:
<iframe width="100%" height="100%" src="http://etcetera.com" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" />

NomadCF 11-10-2006 17:34

Re: Web Page in game
 
Whats MOD's support html ?

MaximusBrood 11-10-2006 18:31

Re: Web Page in game
 
The doctype is causing the scrollbars to disfunction.
You could try to remove the doctype from your forum, but it may break styles.

DaDDy 11-12-2006 09:41

Re: Web Page in game
 
thanks for your replies guys.

i will crunch my wa throught it :)


All times are GMT -4. The time now is 06:53.

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