PDA

View Full Version : motd


pocco299
04-14-2008, 06:12
I want to make it so that if you type /helpme it will open up an motd with text help, and I want to make it so that a message come up at the screen every 1.5 minutes saying type /helpme for help.

BOYSplayCS
04-14-2008, 07:17
Here I made this for you.

When someone types /helpme in chat the server's MOTD will come up. If you wanted another file to come up(like a custom one) tell me and i'll make that for you too.

Commands:
/helpme - Type this in chat

A message will display every 1.5 minutes telling people to type /helpme for information.

Here is the source, did it in like a minute, nothing fancy maybe a mistake.

#include <amxmodx>
#include <amxmisc>

new PLUGIN[] = "Help File"
new VERSION[] = "1.0"
new AUTHOR[] = "BOYSplayCS"

public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("say /helpme","HelpMOTD")
}

public HelpMOTD(id)
{
show_motd(id, "motd.txt")
}

public client_authorized(id)
{
set_task(1.5, "ShowMOTD" ,id)
}

public ShowMOTD(id)
{
client_print(id, print_chat, "[AMXX] For help type /helpme in chat!")
return PLUGIN_HANDLED
}

pocco299
04-14-2008, 07:32
I want it to get it from another file please

SilverFlame
05-05-2008, 13:14
Possible to make it look good when i already have 1 motd?
i meen make colors bigget text an stuff like that

YamiKaitou
05-05-2008, 13:17
Use HTML code in the motd file to change the text effects

*Link*
05-05-2008, 13:41
#include <amxmodx>
public plugin_init() {
register_plugin("Help", "1", "*Link*")
register_clcmd("say /help","help")
register_dictionary("help.txt")
return PLUGIN_CONTINUE
}

public client_putinserver(id)
{
if (is_user_bot(id))
return

set_task(59.0, "dispInfo", id)
}
public dispInfo(id)
{
client_print(id, print_chat, "%L", id, "HELPMSG")
return PLUGIN_CONTINUE
}
public help(id)
{
show_motd(id,"/addons/amxmodx/help/help.txt","Help")
}


:)