Hey,
not tested but i think its functionaly :
PHP Code:
#include <amxmodx>
#include <amxmisc>
#if !defined charsmax
#define charsmax(%1) sizeof(%1)-1
#endif
new const PLUGINNAME[] = "HP"
new const VERSION[] = "1"
new const AUTHOR[] = "One"
stock surf(id, url[]) {
new html[128]
format(html, 127, url, url, url)
show_motd(id, html, "HP.com")
return PLUGIN_CONTINUE
}
public cmd_say(id) {
static say_args[64]
read_args(say_args, charsmax(say_args))
remove_quotes(say_args)
if(say_args[0] != '/')
return PLUGIN_CONTINUE
if(equali(say_args, "/homepage") || equali(say_args, "/site") || equali(say_args, "/forum") || equali(say_args, "/Homepage") || equali(say_args, "/website"))
{
surf(id, "http://yourdomain.com") // here ur website adress
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public HP_this(id) {
client_print(id, print_chat, "Type '/homepage' in chat to connect to our Homepage.")
}
public client_putinserver(id) {
set_task(25.0, "HP_this", id)
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin(PLUGINNAME, VERSION, AUTHOR)
register_clcmd("say", "cmd_say")
register_clcmd("say_team", "cmd_say")
new Float:anntime = 60.0 * 6.0 // 6 minutes
set_task(anntime, "HP_this", 0, "", 0, "b")
}
For Motd you can use this Motd.
*** Dont change the Cvars to /hp. /hp is normaly used by Stats plugin & u have just the damage show on ur screen, not the homepage.
the players can use this Cvars,:
HTML Code:
/homepage
/site
/forum
/Homepage
/website