Raised This Month: $ Target: $400
 0% 

Web Page in game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DaDDy
Member
Join Date: Jul 2006
Location: Northampton, UK
Old 11-09-2006 , 04:49   Web Page in game
Reply With Quote #1

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
__________________
DaDDy is offline
Send a message via MSN to DaDDy
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 11-09-2006 , 05:42   Re: Web Page in game
Reply With Quote #2

is this plugin for counter-strike or for any mod ?

since i saw scrollbars in cs once
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
DaDDy
Member
Join Date: Jul 2006
Location: Northampton, UK
Old 11-09-2006 , 05:55   Re: Web Page in game
Reply With Quote #3

i am using this for CZ.

The scroll bars are there. the site just doesnt move
__________________
DaDDy is offline
Send a message via MSN to DaDDy
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 11-09-2006 , 13:37   Re: Web Page in game
Reply With Quote #4

Quote:
Originally Posted by DaDDy View Post
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.
organizedKaoS is offline
DaDDy
Member
Join Date: Jul 2006
Location: Northampton, UK
Old 11-10-2006 , 10:29   Re: Web Page in game
Reply With Quote #5

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 ?
__________________
DaDDy is offline
Send a message via MSN to DaDDy
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-10-2006 , 12:08   Re: Web Page in game
Reply With Quote #6

There is a solution to this, if you search you might find it (don't remember topic or anything like that).
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-10-2006 , 13:43   Re: Web Page in game
Reply With Quote #7

An iframe would be:

Code:
<iframe width="100%" height="100%" src="http://etcetera.com" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" />
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
NomadCF
Member
Join Date: Oct 2006
Old 11-10-2006 , 17:34   Re: Web Page in game
Reply With Quote #8

Whats MOD's support html ?
__________________
NomadCF is offline
Send a message via AIM to NomadCF
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 11-10-2006 , 18:31   Re: Web Page in game
Reply With Quote #9

The doctype is causing the scrollbars to disfunction.
You could try to remove the doctype from your forum, but it may break styles.
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
DaDDy
Member
Join Date: Jul 2006
Location: Northampton, UK
Old 11-12-2006 , 09:41   Re: Web Page in game
Reply With Quote #10

thanks for your replies guys.

i will crunch my wa throught it
__________________
DaDDy is offline
Send a message via MSN to DaDDy
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 06:53.


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