AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Plugin Help! (https://forums.alliedmods.net/showthread.php?t=11245)

NYPDghost 03-13-2005 13:23

Plugin Help!
 
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.

XunTric 03-13-2005 13:27

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 }

NYPDghost 03-14-2005 15:38

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!

Knare 03-14-2005 15:44

the beauty of scripting is the file can be where ever you want

XunTric 03-15-2005 09:42

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!

Xerbee 03-16-2005 03:11

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 :roll:

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?

nightscreem 03-16-2005 07:24

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") }


All times are GMT -4. The time now is 13:59.

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