Raised This Month: $51 Target: $400
 12% 

Show WEbpage with MOTD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NicolausX
Junior Member
Join Date: Sep 2010
Old 04-20-2012 , 19:08   Show WEbpage with MOTD
Reply With Quote #1

CS 1.6
Server on Linux


Hello guys i'm trying to show a webpage using MOTD and is not working

This is the code :



#include <amxmodx>

#define PLUGIN "vot"
#define VERSION "1.0"
#define AUTHOR "Anonim" //

public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("say /vot","vot")
register_clcmd("say_team /vot","vot")

set_task( 100.0, "mesaj", 0, "", 0, "b" );
}

public evidenta(id,level,cid)
{
show_motd(id,"http://www.siteEX.com/voteaza/action.php")
return PLUGIN_CONTINUE;
}

public mesaj()
{
client_print( 0, print_chat, "Tasteaza in chat /vot daca iti place serverul!" );
}




I have tried numerous sites is does not work , but on a friend server it works just fine
can someone give me a head here, i real need this
And also on my friend server it works but does not update the page has time pases.

All the best guys i hope 1 on of you well gave me letter help as whay it does not work for me
and why in my friend server dos not update.

Last edited by NicolausX; 04-20-2012 at 20:00.
NicolausX is offline
Deidara
Member
Join Date: Jul 2010
Location: Romania
Old 04-20-2012 , 20:01   Re: Show WEbpage with MOTD
Reply With Quote #2

Fix
Code:
#include <amxmodx>

#define PLUGIN "vot"
#define VERSION "1.0"
#define AUTHOR "Anonim" // 

public plugin_init() 
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("say /vot","vot")
register_clcmd("say_team /vot","vot") 

set_task( 100.0, "mesaj", 0, "", 0, "b" );
}

public vot(id)
{
show_motd(id,"http://www.siteEX.com/voteaza/action.php")
return PLUGIN_CONTINUE;
}

public mesaj()
{
client_print( 0, print_chat, "Tasteaza in chat /vot daca iti place serverul!" );
}
register_clcmd("say /vot","vot")
register_clcmd("say_team /vot","vot")

and

public evidenta(id,level,cid)

Last edited by Deidara; 04-20-2012 at 20:03.
Deidara is offline
Send a message via Yahoo to Deidara Send a message via Skype™ to Deidara
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 04-20-2012 , 20:25   Re: Show WEbpage with MOTD
Reply With Quote #3

Code:
#include <amxmodx> public plugin_init()  {     register_clcmd("say /vot""ShowMotd");     register_clcmd("say_team /vot", "ShowMotd");         set_task(100.0, "Advertise", _, _, _, "b"); } public ShowMotd(id)     show_motd(id, "http://www.siteEX.com/voteaza/action.php", "Tittle"); public Advertise()     client_print(0, print_chat, "Tasteaza in chat /vot daca iti place serverul!");
__________________

Last edited by kramesa; 04-20-2012 at 20:27.
kramesa is offline
NicolausX
Junior Member
Join Date: Sep 2010
Old 04-20-2012 , 21:34   Re: Show WEbpage with MOTD
Reply With Quote #4

Yes it was not defined, thanks 4 help to both of you.

How can i include this in the function to Refresh ?
:

formatex(motd, sizeof(motd) - 1,\
"<html><head><meta http-equiv=^"Refresh^" content=^"0;url=%s^"></head><body><p><center>LOADING...</center></p></body></html>",\
website);

Last edited by NicolausX; 04-20-2012 at 21:44.
NicolausX is offline
Larcyn
Senior Member
Join Date: Oct 2010
Old 04-21-2012 , 05:28   Re: Show WEbpage with MOTD
Reply With Quote #5

Quote:
Originally Posted by NicolausX View Post
Yes it was not defined, thanks 4 help to both of you.

How can i include this in the function to Refresh ?
:

formatex(motd, sizeof(motd) - 1,\
"<html><head><meta http-equiv=^"Refresh^" content=^"0;url=%s^"></head><body><p><center>LOADING...</center></p></body></html>",\
website);
Include it to your website instead
__________________

Taking private requests, PM me for information.
Selling HideNSeek & Jailbreak plugins.

Selling Achievement API System (PHP &
MySQL / nVault)
Larcyn 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 20:10.


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