AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   link to function in motd. (https://forums.alliedmods.net/showthread.php?t=126851)

drekes 05-14-2010 11:00

link to function in motd.
 
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.

Mxnn 05-14-2010 15:11

Re: link to function in motd.
 
You can make 2 motds and link them with HTML code.

drekes 05-14-2010 15:17

Re: link to function in motd.
 
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

Bugsy 05-14-2010 16:35

Re: link to function in motd.
 
Just output your motd data to two separate files and link the second one from the first.

drekes 05-14-2010 17:27

Re: link to function in motd.
 
Quote:

Originally Posted by Bugsy (Post 1180226)
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?

fysiks 05-14-2010 18:02

Re: link to function in motd.
 
Probably just a relative link: <a href="page2.html">Link Text</a>?

Nevermind, it didn't work for me.

drekes 05-14-2010 18:13

Re: link to function in motd.
 
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


All times are GMT -4. The time now is 03:32.

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