Servus,
da mir bei meinem letzten Problem so gut und schnell geholfen wurde, wollt ich doch gleich noch meine nächste Frage loslassen =)
Ich suche ein Plugin, wo man /homepage oder /hp soetwas in der art schreiben kann und dann auf die eingetragene Seite connectet.
Gesucht habe ich schon und habe das hier gefunden:
Quote:
#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")
}
|
Jedoch geht dann nur der Browser von CS auf und net der normale Browser wie Internet Explorer oder Mozilla.
Gibt es da nicht etwas das den standard Browser öffnet.
Vielen Dank im Vorraus
Grüße Koreless