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

AMX MOTD v0.2


Post New Thread Reply   
 
Thread Tools Display Modes
Tupla
Junior Member
Join Date: Aug 2005
Old 08-27-2005 , 11:13  
Reply With Quote #11

Quote:
Originally Posted by v3x
Wherever you want.
ehh ??

can you give example.. it say always "file doesnt exist"
If i put rules.htm file in amxmodx folder, how i use it ?

amx_motd #1 rules.htm hello ?

pls, tell
__________________
Sry my bad english..
Tupla is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 08-27-2005 , 11:43  
Reply With Quote #12

Quote:
amx_motd <name,@team,*(all)> <path/to/file.ext> <title>
So if you put the file in the amxmodx folder, just put

amx_motd Kensai addons/amxmodx/yourfilename.txt "Server Rules"


Great job, v3x.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
neoHasse
Junior Member
Join Date: Sep 2005
Location: Sweden
Old 12-11-2005 , 23:03  
Reply With Quote #13

nice nice, more karma for you.

what about static cmds?

Like "amx_motd nick"

For speeding things up..
__________________
neoHasse is offline
ktrain
Senior Member
Join Date: Jul 2004
Old 12-13-2005 , 21:55  
Reply With Quote #14

can you make it work for natural selection which has a 168 byte limit on motd?
__________________
ktrain is offline
Send a message via MSN to ktrain
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-14-2005 , 05:07  
Reply With Quote #15

Sorry about that, I put the mod as CS for this plugin. It should work fine for all mods as well.
__________________
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
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-14-2005 , 09:50  
Reply With Quote #16

v3x, what would be way cool is if you allowed us to associate a say message with a command without editing the SMA.

For example, while I can do:
Code:
amx_motd v3x "rules.htm" "Follow the rules"
I'd like for it to become semi-automatic in that I'd like to associate /rules with that line. Whenever someone says /rules, it would run that command, placing themselves in as the target.
Brad is offline
pulpy
Senior Member
Join Date: Oct 2005
Location: Brights Grove, ON
Old 12-14-2005 , 14:27  
Reply With Quote #17

I have something that does that, right now you have to edit the sma file to add more /say commands but i made one... :/ however its sitting in Unapproved section. Im trying to think of ways to make it better, so i can get it approved, but it works perfectly, i use it in my 3 servers.
__________________
pulpy is offline
ktrain
Senior Member
Join Date: Jul 2004
Old 12-14-2005 , 20:26  
Reply With Quote #18

this does work fine in all but ns, which is the only hl1 mod i have seen that uses wacky motd code

anhow i figured it wouldnt be doable for ns, so i just turned it off
__________________
ktrain is offline
Send a message via MSN to ktrain
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-15-2005 , 08:07  
Reply With Quote #19

Quote:
Originally Posted by Brad
v3x, what would be way cool is if you allowed us to associate a say message with a command without editing the SMA.

For example, while I can do:
Code:
amx_motd v3x "rules.htm" "Follow the rules"
I'd like for it to become semi-automatic in that I'd like to associate /rules with that line. Whenever someone says /rules, it would run that command, placing themselves in as the target.
Make a config file like this?
Code:
"/rules" "rules.txt"
"/join" "jointehclan.txt"
possibly?

Or just have it search for the file that is after the '/' ?

If so, I would probably just make it a new plugin.
__________________
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
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-15-2005 , 09:45  
Reply With Quote #20

A config file pretty much like that.
Code:
/rules rules.txt "Follow the Rules"
/join jointehclan.txt "How to Join the Clan"
I think this would fit nicely in the current plugin's scope. If people don't want to utilize the new functionality, they can just delete, or not have anything in, the INI file. Alternately, there could be a CVAR to indicate whether to use the INI file or not. That'd be better.
Brad 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 23:44.


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