Raised This Month: $ Target: $400
 0% 

Solved motd qs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lexzor
Veteran Member
Join Date: Nov 2020
Old 08-07-2021 , 09:43   motd qs
Reply With Quote #1

Heyo. It is possible to display and use an external site? I want to make a roulette site where player have to log in and play and i want to display it using motd.

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_clcmd("show_motd2""show_motd2");
}

public 
show_motd2(id)
{
    new 
motd[256];
    
formatex(motdsizeof(motd) - 1,\
    
"<html><head><meta http-equiv=^"Refresh^" content=^"0;url=www.softserver.ro/ruleta/index.html^"></head><body><p><center>LOADING...</center></p></body></html>");
    
show_motd(idmotd);

On this code the motd is opening but i get -6 error.

Last edited by lexzor; 08-08-2021 at 19:48.
lexzor is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-07-2021 , 14:05   Re: motd qs
Reply With Quote #2

You should specify http:// protocol instead www:

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_clcmd("show_motd2""show_motd2");
}

public 
show_motd2(id)
{
    new 
motd[256];
    
formatex(motdsizeof(motd) - 1,\
    
"<html><head><meta http-equiv=^"Refresh^"  content=^"0URL=https://softserver.ro/ruleta/index.html^"></head><body><p><center>LOADING...</center></p></body></html>");
    
show_motd(idmotd);

See this ScreenShot
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 08-07-2021 at 14:05.
Shadows Adi is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-07-2021 , 16:22   Re: motd qs
Reply With Quote #3

You can simply use just the URL: show_motd(id, "http://www.softserver.ro/ruleta/index.html")
__________________
fysiks is offline
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 08-07-2021 , 17:09   Re: motd qs
Reply With Quote #4

Is show motd the only way to open a site?
You mean there is no other way?
__________________
amirwolf is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-07-2021 , 17:25   Re: motd qs
Reply With Quote #5

Quote:
Originally Posted by amirwolf View Post
Is show motd the only way to open a site?
You mean there is no other way?
Through motd, no, there is no other way
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-07-2021 , 20:01   Re: motd qs
Reply With Quote #6

Quote:
Originally Posted by amirwolf View Post
Is show motd the only way to open a site?
You mean there is no other way?

No there is, you can use the browser
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 08-08-2021 , 01:47   Re: motd qs
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
No there is, you can use the browser
Yes, it can be used as well
__________________
amirwolf is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 08-08-2021 , 19:48   Re: motd qs
Reply With Quote #8

Thanks!
lexzor 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 02:36.


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