Kooderite nupud
Lehekülg 1, lehekülgi kokku 1 • Share
- Tehnik aKKomeet
- Liitus : 28/03/2013
Postitusi : 453
Foorumis teil amxx pluginate all pole seda,et kes serveris vajutavad koodi nuppu saavad automaatselt kick.
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
- Kood:
#include <amxmodx>
new CVAR, cvar_1_str, cvar_2_str, cvar_3_str, cvar_4_str, cvar_5_str
public plugin_init()
{
register_plugin("Anti Cheatkeys","1.0","unknown");
CVAR = register_cvar("commands_on","1");
cvar_1_str = register_cvar("bind_cmd1","bind ^"f9^" ^"^"say [SERVER]: F9 on keelatud!^";wait;disconnect^"");
cvar_2_str = register_cvar("bind_cmd2","bind ^"f12^" ^"^"say [SERVER]: F12 on keelatud!^";wait;disconnect^"");
cvar_3_str = register_cvar("bind_cmd3","bind ^"ins^" ^"^"say [SERVER]: Insert on keelatud!^";wait;disconnect^"");
cvar_4_str = register_cvar("bind_cmd4","bind ^"end^" ^"^"say [SERVER]: End on keelatud!^";wait;disconnect^"");
cvar_5_str = register_cvar("bind_cmd5","bind ^"del^" ^"^"say [SERVER]: Delete on keelatud!^";wait;disconnect^"");
}
public client_connect(id)
{
static cvar_1[64], cvar_2[64], cvar_3[64], cvar_4[64], cvar_5[64];
get_pcvar_string(cvar_1_str, cvar_1, 63);
get_pcvar_string(cvar_2_str, cvar_2, 63);
get_pcvar_string(cvar_3_str, cvar_3, 63);
get_pcvar_string(cvar_4_str, cvar_4, 63);
get_pcvar_string(cvar_5_str, cvar_5, 63);
if(get_pcvar_num(CVAR))
{
client_cmd(id, cvar_1);
client_cmd(id, cvar_2);
client_cmd(id, cvar_3);
client_cmd(id, cvar_4);
client_cmd(id, cvar_5);
}
}
- Tehnik aKKomeet
- Liitus : 28/03/2013
Postitusi : 453
Tonight kirjutas:
- Kood:
#include <amxmodx>
new CVAR, cvar_1_str, cvar_2_str, cvar_3_str, cvar_4_str, cvar_5_str
public plugin_init()
{
register_plugin("Anti Cheatkeys","1.0","unknown");
CVAR = register_cvar("commands_on","1");
cvar_1_str = register_cvar("bind_cmd1","bind ^"f9^" ^"^"say [SERVER]: F9 on keelatud!^";wait;disconnect^"");
cvar_2_str = register_cvar("bind_cmd2","bind ^"f12^" ^"^"say [SERVER]: F12 on keelatud!^";wait;disconnect^"");
cvar_3_str = register_cvar("bind_cmd3","bind ^"ins^" ^"^"say [SERVER]: Insert on keelatud!^";wait;disconnect^"");
cvar_4_str = register_cvar("bind_cmd4","bind ^"end^" ^"^"say [SERVER]: End on keelatud!^";wait;disconnect^"");
cvar_5_str = register_cvar("bind_cmd5","bind ^"del^" ^"^"say [SERVER]: Delete on keelatud!^";wait;disconnect^"");
}
public client_connect(id)
{
static cvar_1[64], cvar_2[64], cvar_3[64], cvar_4[64], cvar_5[64];
get_pcvar_string(cvar_1_str, cvar_1, 63);
get_pcvar_string(cvar_2_str, cvar_2, 63);
get_pcvar_string(cvar_3_str, cvar_3, 63);
get_pcvar_string(cvar_4_str, cvar_4, 63);
get_pcvar_string(cvar_5_str, cvar_5, 63);
if(get_pcvar_num(CVAR))
{
client_cmd(id, cvar_1);
client_cmd(id, cvar_2);
client_cmd(id, cvar_3);
client_cmd(id, cvar_4);
client_cmd(id, cvar_5);
}
}
Et nüüd kui vajutab saab kick ?
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Läheb ise serverist minema jah (disconnect).
- Tehnik aKKomeet
- Liitus : 28/03/2013
Postitusi : 453
Ei tööta
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Steameritel ei pruugi funktsioneerida sellised slowhack pluginad.
Proovi seda, muutsin veits:
Proovi seda, muutsin veits:
- Kood:
#include <amxmodx>
public plugin_init()
{
register_plugin("F9 jms keelamine", "0.0.7", "Faval")
}
public client_connect(id)
{
client_cmd(id,"bind ^"f9^" ^"^"say [SERVER]: F9 on keelatud!^";wait;disconnect^"");
client_cmd(id,"bind ^"f10^" ^"^"say [SERVER]: F10 on keelatud!^";wait;disconnect^"");
client_cmd(id,"bind ^"f11^" ^"^"say [SERVER]: F11 on keelatud!^";wait;disconnect^"");
client_cmd(id,"bind ^"f12^" ^"^"say [SERVER]: F12 on keelatud!^";wait;disconnect^"");
client_cmd(id,"bind ^"ins^" ^"^"say [SERVER]: Insert on keelatud!^";wait;disconnect^"");
client_cmd(id,"bind ^"end^" ^"^"say [SERVER]: End on keelatud!^";wait;disconnect^"");
client_cmd(id,"bind ^"del^" ^"^"say [SERVER]: Delete on keelatud!^";wait;disconnect^"");
client_cmd(id,"bind ^"home^" ^"^"say [SERVER]: Home on keelatud!^";wait;disconnect^"");
client_cmd(id,"bind ^"pgup^" ^"^"say [SERVER]: Page Up on keelatud!^";wait;disconnect^"");
client_cmd(id,"bind ^"pgdn^" ^"^"say [SERVER]: Page Down on keelatud!^";wait;disconnect^"");
}
- Tehnik aKKomeet
- Liitus : 28/03/2013
Postitusi : 453
Ikka ei tööta
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Täpsemalt ei või seletada, eks?
Testitud, töötab:
Testitud, töötab:
- Kood:
#include <amxmodx>
public plugin_init()
{
register_plugin("F9 jms keelamine", "0.0.7", "Faval")
}
public client_connect(id)
{
client_cmd(id,"bind ^"f9^" ^"disconnect^"");
client_cmd(id,"bind ^"f10^" ^"disconnect^"");
client_cmd(id,"bind ^"f11^" ^"disconnect^"");
client_cmd(id,"bind ^"f12^" ^"disconnect^"");
client_cmd(id,"bind ^"ins^" ^"disconnect^"");
client_cmd(id,"bind ^"end^" ^"disconnect^"");
client_cmd(id,"bind ^"del^" ^"disconnect^"");
client_cmd(id,"bind ^"home^" ^"disconnect^"");
client_cmd(id,"bind ^"pgup^" ^"disconnect^"");
client_cmd(id,"bind ^"pgdn^" ^"disconnect^"");
}
- Tehnik aKKomeet
- Liitus : 28/03/2013
Postitusi : 453
Panen serverile peale, vahetan mapi vajuta nonsteamiga end ja ei viska välja
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Plugin töötab (testisin enne), pakun, et sul on config.cfg read-only.Tehnik aK kirjutas:Panen serverile peale, vahetan mapi vajuta nonsteamiga end ja ei viska välja
- Tehnik aKKomeet
- Liitus : 28/03/2013
Postitusi : 453
Panin selle
#include
public plugin_init()
{
register_plugin("F9 jms keelamine", "0.0.7", "Faval")
}
public client_connect(id)
{
client_cmd(id,"bind ^"f9^" ^"disconnect^"");
client_cmd(id,"bind ^"f10^" ^"disconnect^"");
client_cmd(id,"bind ^"f11^" ^"disconnect^"");
client_cmd(id,"bind ^"f12^" ^"disconnect^"");
client_cmd(id,"bind ^"ins^" ^"disconnect^"");
client_cmd(id,"bind ^"end^" ^"disconnect^"");
client_cmd(id,"bind ^"del^" ^"disconnect^"");
client_cmd(id,"bind ^"home^" ^"disconnect^"");
client_cmd(id,"bind ^"pgup^" ^"disconnect^"");
client_cmd(id,"bind ^"pgdn^" ^"disconnect^"");
}
amxmodx lehel compiler ja nimeks f9 sain amxx faili panin peale ja ei midagi
#include
public plugin_init()
{
register_plugin("F9 jms keelamine", "0.0.7", "Faval")
}
public client_connect(id)
{
client_cmd(id,"bind ^"f9^" ^"disconnect^"");
client_cmd(id,"bind ^"f10^" ^"disconnect^"");
client_cmd(id,"bind ^"f11^" ^"disconnect^"");
client_cmd(id,"bind ^"f12^" ^"disconnect^"");
client_cmd(id,"bind ^"ins^" ^"disconnect^"");
client_cmd(id,"bind ^"end^" ^"disconnect^"");
client_cmd(id,"bind ^"del^" ^"disconnect^"");
client_cmd(id,"bind ^"home^" ^"disconnect^"");
client_cmd(id,"bind ^"pgup^" ^"disconnect^"");
client_cmd(id,"bind ^"pgdn^" ^"disconnect^"");
}
amxmodx lehel compiler ja nimeks f9 sain amxx faili panin peale ja ei midagi
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Ma sain enda serveris selle tööle, seega plugin töötab. Probleem võib olla serveri buildis või bindimise blokeerimises (CSi konsoolist näed Server tried to send invalid vms).
- Tehnik aKKomeet
- Liitus : 28/03/2013
Postitusi : 453
Teema lukku!
Soovid vestluses osaleda?
Selleks logi sisse või tee endale kasutaja.
Lehekülg 1, lehekülgi kokku 1
Permissions in this forum:
Sa ei saa vastata siinsetele teemadele