Połączenie z ventrilo podczas gry say /vent
Napisane: Wt, 3 sie 2010, 16:25
Plugin ten po napisaniu na say /vent, /vt lub /ventrilo łączy nas z naszym serwer ventrilo(wszystkie wersje!).
Cvar:
Source:
[php]/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Say ventrilo"
#define AUTHOR "Sru"
#define VERSION "1.2"
new vent_ip;
new g_Commands[][] =
{
"say /vt",
"say /ventrilo",
"say /vent"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
vent_ip = register_cvar("vent_ip", "t.rootnode.net:50505");
for ( new i = 0; i < sizeof(g_Commands); i++)
{
register_clcmd(g_Commands[i], "kopytko");
}
}
public kopytko(id)
{
new message[1024], ip[64];
get_pcvar_string(vent_ip, ip, 63);
format ( message, 1023, "<meta http-equiv='refresh' content='0;url=ventrilo://%s/servername=123'><center>Zostales polaczony z serwer VT. Mozesz zamknac to okno</center>",ip );
show_motd(id, message, "Serwer VT");
} [/php]
Changelog:
1.2 ->Poprawiony błąd z get_pcvar_string, thx 4 kamaz.
1.0 ->Pierwsze wydanie
Cvar:
Kod: Zaznacz cały
vent_ip 127.0.0.1:3000 //ip:port serwera ventrilo
Source:
[php]/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Say ventrilo"
#define AUTHOR "Sru"
#define VERSION "1.2"
new vent_ip;
new g_Commands[][] =
{
"say /vt",
"say /ventrilo",
"say /vent"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
vent_ip = register_cvar("vent_ip", "t.rootnode.net:50505");
for ( new i = 0; i < sizeof(g_Commands); i++)
{
register_clcmd(g_Commands[i], "kopytko");
}
}
public kopytko(id)
{
new message[1024], ip[64];
get_pcvar_string(vent_ip, ip, 63);
format ( message, 1023, "<meta http-equiv='refresh' content='0;url=ventrilo://%s/servername=123'><center>Zostales polaczony z serwer VT. Mozesz zamknac to okno</center>",ip );
show_motd(id, message, "Serwer VT");
} [/php]
Changelog:
1.2 ->Poprawiony błąd z get_pcvar_string, thx 4 kamaz.
1.0 ->Pierwsze wydanie