Raised This Month: $ Target: $400
 0% 

/help plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JayHaxor
BANNED
Join Date: Aug 2007
Location: New Jersey
Old 08-30-2007 , 20:34   /help plugin
Reply With Quote #1

Can someone make a plugin when you type /help then it shows this motd thing well not an motd.. because then i would get the /motd plugin.. im talking about a seperate window and you can customize that window with like html or something you can put in like a txt file. I want this plugin because most people dont know how to use like rope and other plugins on my server so i want them to just say /help and then it will open up a window of the things i written to help them with the plugins i put. Im using the motd for soemthing else. so.. please any helP?
JayHaxor is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 08-30-2007 , 21:46   Re: /help plugin
Reply With Quote #2

i will make this for you.....

PHP Code:
#include <amxmodx>
#include <amxmisc>
new PLUGIN[] = "help"
new VERSION[] = "1.0"
new AUTHOR[] = "Reaper2331"
public plugin_init()
{
 
register_plugin(PLUGIN,VERSION,AUTHOR)
 
register_clcmd("say /motd","ShowMotd")
}
public 
ShowMotd(id)
{
 
show_motd(id"motd.txt")
}
public 
client_authorized(id)
{
 
set_task(30.0"PrintText" ,id)
}
public 
PrintText(id)
{
 
client_print(idprint_chat"[AMXX] Say /motd to view the motd window")


just edit the
PHP Code:
client_print(idprint_chat"[AMXX] Say /motd to view the motd window"
to say what you want

and edit the
PHP Code:
register_clcmd("say /motd","ShowMotd"
for command to edit

and the
PHP Code:
show_motd(id"motd.txt"
to make it say something like help.txt

and make sure you have a help.txt in your mod's folder like cstrike for cs 1.6 and czero for Condition Zero

and recompile it at the http://www.amxmodx.org/webcompiler.cgi
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
JayHaxor
BANNED
Join Date: Aug 2007
Location: New Jersey
Old 08-31-2007 , 00:08   Re: /help plugin
Reply With Quote #3

alright thx
JayHaxor is offline
JayHaxor
BANNED
Join Date: Aug 2007
Location: New Jersey
Old 08-31-2007 , 00:10   Re: /help plugin
Reply With Quote #4

+++ KARMA xD
JayHaxor is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 08-31-2007 , 15:56   Re: /help plugin
Reply With Quote #5

no problem wasnt hard to code it
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
JayHaxor
BANNED
Join Date: Aug 2007
Location: New Jersey
Old 08-31-2007 , 21:48   Re: /help plugin
Reply With Quote #6

oh yeah, can i make another one? like /rules and then change everything to /rules insted of help and then make a rules.txt will that work?
JayHaxor is offline
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 08-31-2007 , 23:05   Re: /help plugin
Reply With Quote #7

yep lol ur catchin on..... its easy to do
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
JayHaxor
BANNED
Join Date: Aug 2007
Location: New Jersey
Old 09-01-2007 , 13:09   Re: /help plugin
Reply With Quote #8

xD thanks
JayHaxor is offline
eXtinct
Member
Join Date: Sep 2007
Location: Bay Area, CA
Old 09-01-2007 , 13:10   Re: /help plugin
Reply With Quote #9

yeah, i've got one for /rules /join and /abuse =D
__________________
eXtinct . it'll all be over very soon .

eXtinct is offline
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 09-01-2007 , 13:32   Re: /help plugin
Reply With Quote #10

I just use InfoBot from the AMX forums...

Pretty easy to use (though I think the commands are console commands, but those can easily be made into chat commands) - you can just make text files, put stuff in there (with or without HTML) and people typing the command with the corresponding filename will be shown that text file, MOTD "style".

For those who want it;
The original plugin thread: http://djeyl.net/forum/index.php?sho...=23180&hl=info

Zip file down below-
Attached Files
File Type: zip infobot.zip (4.2 KB, 115 views)
__________________
Mod:
User:
BlackMilk 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 16:03.


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