Raised This Month: $ Target: $400
 0% 

How to open text files on players screen???


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-06-2005 , 06:06   How to open text files on players screen???
Reply With Quote #1

Hey! Im working on a pretty big new plugin.
And what I want is when somebody type "/help" a help file will show up on their screen.
Like the motd...
Whats the command to do that?
XunTric is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 03-06-2005 , 06:41  
Reply With Quote #2

maybe look in this it's the say /motd plugin
Code:
#include <amxmodx> #include <amxmisc> public admin_motd(id,level,cid){     if (!cmd_access(id,level,cid,1))         return PLUGIN_HANDLED         show_motd(id,"motd.txt","Message of the Day.")     return PLUGIN_HANDLED   } public plugin_init() {     register_plugin("say_motd","1.0","Pain")     register_concmd("say /motd","admin_motd",0,"- Shows the MOTD.")       return PLUGIN_CONTINUE }
__________________
- Bye bye!
nightscreem is offline
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-06-2005 , 08:17  
Reply With Quote #3

Ok thanks. But whats the "Message of the day" good for?
XunTric is offline
NiGHTFiRE
Senior Member
Join Date: Dec 2004
Location: Sweden
Old 03-06-2005 , 08:51  
Reply With Quote #4

MOTD= Message of the day
NiGHTFiRE is offline
Send a message via AIM to NiGHTFiRE Send a message via MSN to NiGHTFiRE
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-06-2005 , 09:25  
Reply With Quote #5

Ok thanks people. I got another little problem.
I dont know anything about html.
When the message shows up its just black letters with white background.
Can somebody give me the html cmds to change letter and background color? And the numbers for each color?
Thanks
XunTric is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-06-2005 , 10:19  
Reply With Quote #6

Quote:
Originally Posted by XunTric
Ok thanks. But whats the "Message of the day" good for?
From this line:

show_motd(id,"motd.txt","Message of the Day.")

the Text "Message of the Day" will be the Title of the MOTD Window that displays, so in your window, you may change the title...


Basic HTML template:

Code:

<html>
<head></head>
<body text="red" bgcolor="green">

<center>Centered Text</center>


Bold Text


Italics Text


<u>Underlined Text</u>



HTML is simple, just look here: HTML Reference

And for Color Codes, read this: Hex Color Codes 

</body>
</html>
Save that as a .htm or .html file and open it up from your computer in your web browser to view it offline...
xeroblood is offline
Send a message via MSN to xeroblood
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-06-2005 , 11:28  
Reply With Quote #7

Thanks. And just one last question. When you write a link. Whats the command to make it so you can click on it?
XunTric is offline
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-06-2005 , 11:38  
Reply With Quote #8

Omg sorry for my stupidness.
Stands in xeroblood's post
XunTric is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-06-2005 , 12:15  
Reply With Quote #9

Off topic:

Does anyone know what the limit is for charactors in motd.txt? Because when my motd window loads, it cuts off some stuff at the end .
__________________
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 03-06-2005 , 12:25  
Reply With Quote #10

i think its 1024.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
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 14:16.


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