Raised This Month: $ Target: $400
 0% 

MOTD window


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-06-2005 , 17:14   MOTD window
Reply With Quote #1

Hey, could someone show me a basic code for opening a file in the motd window by using a say command?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 02-06-2005 , 17:33  
Reply With Quote #2

Well all you'd have to do is register a client command :
Code:
register_clcmd("say /command","function",0,"description")
Then in the function you'd just have to open up the motd with your text in it. :
Code:
public function() {    // code }
Peli is offline
Send a message via MSN to Peli
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-06-2005 , 17:37  
Reply With Quote #3

Ya, but what's the code for where the comment is?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
DarkShadowST
Member
Join Date: Apr 2004
Location: Texas
Old 02-06-2005 , 17:40  
Reply With Quote #4

Code:
show_motd(id,"cphelp.txt","Checkpoint System Help:") //Id, Source of .html, Title return PLUGIN_HANDLED
__________________
My Current Desktop:
Entire

DONT WATCH ME!!! Evil...People...
DarkShadowST is offline
Send a message via AIM to DarkShadowST Send a message via MSN to DarkShadowST Send a message via Yahoo to DarkShadowST
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-06-2005 , 17:40  
Reply With Quote #5

Danke .
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-06-2005 , 17:49  
Reply With Quote #6

One more small question, where would the htm file go?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-06-2005 , 17:51  
Reply With Quote #7

im assuming in dedicated server\ts\file.htm
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-06-2005 , 18:31  
Reply With Quote #8

How could I set it for a specific directory?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-07-2005 , 15:26  
Reply With Quote #9

Quote:
Originally Posted by v3x
How could I set it for a specific directory?
Anybody?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-07-2005 , 17:12  
Reply With Quote #10

In the source, change cphelp.txt to addons/amxmodx/data/cphelp.txt or something.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 03:41.


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