Raised This Month: $ Target: $400
 0% 

Plugin Help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NYPDghost
Junior Member
Join Date: Feb 2005
Old 03-13-2005 , 13:23   Plugin Help!
Reply With Quote #1

Hello, i was wondering if there was an amx plugin that lets you create help files that you can look at when you say like a certain thing. You know, like you can create a little help file and say /help to access it? Someone please help me, i searched it but didnt see it.
NYPDghost is offline
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-13-2005 , 13:27  
Reply With Quote #2

make a html file with the help text you want.
and make this plugin

btw, wrong forum...
Code:
#include <amxmodx> public plugin_init() {     register_plugin("Help", "1.0", "NYPDghost")     register_clcmd("say /help", "helpmotd")     register_clcmd("say_team /help", "helpmotd") } public helpmotd(id) {     show_motd(id, "File Location/File name.txt", "Help") // Your file here }
XunTric is offline
NYPDghost
Junior Member
Join Date: Feb 2005
Old 03-14-2005 , 15:38  
Reply With Quote #3

Where would i put the html file? and with the code do i have to make an amxx file out of it or an sma file?

(Sorry im a super noob, never created a plugin before.)

Nvm i see the location in the code. Sorry!
NYPDghost is offline
Knare
Member
Join Date: Oct 2004
Location: New York, USA
Old 03-14-2005 , 15:44  
Reply With Quote #4

the beauty of scripting is the file can be where ever you want
__________________
0110101100111011100110000101110010011001
Knare is offline
Send a message via AIM to Knare Send a message via MSN to Knare
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 03-15-2005 , 09:42  
Reply With Quote #5

Save it as a .sma file, draw it on the compile program, and it makes a .amxx file for you.
The html file can you put anywhere you want, as long that it is somewhere inside the deticated server/cstrike folder (or what game your going to use)
Then write in the location in the script..
Like if you place the file in "deticated server/cstrike/NYPDghost's Files"
And the file name is "Omg", Then your script should look like this:
Code:
#include <amxmodx> public plugin_init() {     register_plugin("Help", "1.0", "NYPDghost")     register_clcmd("say /help", "helpmotd")     register_clcmd("say_team /help", "helpmotd") } public helpmotd(id) {     show_motd(id, "NYPDghost's Files/omg.txt", "Help") // Your file here }

Remeber, the file location start at cstrike folder, not your harddisc!
XunTric is offline
Xerbee
New Member
Join Date: Mar 2005
Old 03-16-2005 , 03:11  
Reply With Quote #6

I was looking for the exact same thing today!
But i do have a small question, you said to make a html file but in the code it says .txt? Is it .html or .txt the file should be?

PS. First post and my english sucks

EDIT: Im now using a .html file with help info but is there anyway to make so it can be larger? Now it says something about overflow when its to long so i have to cut in the text and make two helps, is there anyway i can make it take longer info files?
Xerbee is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 03-16-2005 , 07:24  
Reply With Quote #7

don't think so you can also put a hyper link to help2
this is a pretty good code too
Code:
<amxmodx> public say_help(id) { show_motd(id, "addons/amxmodx/configs/help.txt", "Help") return PLUGIN_HANDLED } public plugin_init() {     register_plugin("say /help", "0.1", "Nightscream")     register_clcmd("say /help", "say_help") }
__________________
- Bye bye!
nightscreem 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 08:50.


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