Raised This Month: $ Target: $400
 0% 

link to function in motd.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-14-2010 , 11:00   link to function in motd.
Reply With Quote #1

Hi,

Is there a way to make a link in an motd (coded in plugin) to another function of the plugin.
Because i'm making 2 motds because not everything fits in one, and if it is possible to show the second one by clicking a link in the first one, it would be very usefull

or make a database and check the stats on a website and display that in a motd. Would be better i think
Thanks.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 05-14-2010 at 12:52.
drekes is offline
Send a message via MSN to drekes
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 05-14-2010 , 15:11   Re: link to function in motd.
Reply With Quote #2

You can make 2 motds and link them with HTML code.
Mxnn is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-14-2010 , 15:17   Re: link to function in motd.
Reply With Quote #3

that is what i'm trying to do, but i don't know the url of the second one. So i thought it could work with linking the function
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-14-2010 , 16:35   Re: link to function in motd.
Reply With Quote #4

Just output your motd data to two separate files and link the second one from the first.
__________________
Bugsy is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-14-2010 , 17:27   Re: link to function in motd.
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
Just output your motd data to two separate files and link the second one from the first.
How do i do that? I mean i can make the motd's but how do i use vars in it?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-14-2010 , 18:02   Re: link to function in motd.
Reply With Quote #6

Probably just a relative link: <a href="page2.html">Link Text</a>?

Nevermind, it didn't work for me.
__________________

Last edited by fysiks; 05-14-2010 at 18:08.
fysiks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-14-2010 , 18:13   Re: link to function in motd.
Reply With Quote #7

yeah, i know about that, but i made the motd's in the plugin, they're not seperate files.

And i'm trying to show a line like this:

Code:
len += format(motd[len], 1500 - len, "<li>Butcher: Get 50 melee kills.             %i/50<font color = ^"yellow^"><b>             %s</b><br><font color = ^"red^">", knifekills[id], knifekills[id] >= 50 ? acv : not_acv)
EDIT: I searched around a bit, and found threads about sql, php, sockets and all kinds of stuff. But could someone make a small tutorail about this cause i don't understand it.

I'm trying to achieve something like this, but on an outside website, since linking 2 motd's seems hard.
I can do the html part myself.

http://forums.alliedmods.net/attachm...1&d=1178033838
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 05-14-2010 at 19:52.
drekes is offline
Send a message via MSN to drekes
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 03:32.


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