|
发表于 2017-4-21 09:22:30
|
显示全部楼层
来自 中国–广东–深圳
AMXX Booster (v.1.0) 源码
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Dan"
new const g_cl[][] =
{
"_cl_autowepswitch 1",
"cl_corpsestay 0",
"cl_timeout 40",
"cl_showerror 0",
"cl_showevents 0",
"cl_shownet 0",
"cl_showfps 0",
"cl_shadows 0",
"cl_himodels 0",
"cl_minmodels 1",
"cl_fixtimerate 7500",
"cl_dlmax 0",
"cl_download_ingame 1",
"cl_allowdownload 1",
"cl_allowupload 1",
"cl_updaterate 200",
"cl_cmdrate 200",
"cl_rate 25000",
"cl_cmdbackup 2",
"cl_resend 6",
"con_color 255+255+255",
"developer 0",
"drawradar",
"ex_interp 0.01",
"ex_extrapmax 1.2",
"fastsprites 0",
"fps_max 125",
"fps_modem 125",
"fakelag 0",
"fakeloss 0",
"hisound 1",
"hpk_maxsize 2",
"hud_draw 1",
"hud_saytext 1",
"hud_fastswitch 1",
"hud_centerid 1",
"gl_texturemode GL_LINEAR_MIPMAP_NEAREST",
"gl_max_size 256",
"gl_ztrick 0",
"gl_zmax 8192",
"gl_keeptjunctions 0",
"gl_reporttjunctions 0",
"gl_flipmatrix 0",
"gl_lightholes 1",
"max_shells -1",
"max_smokepuffs -1",
"nosound 0",
"net_graph 0",
"r_decals 0",
"r_detailtextures 0",
"r_drawviewmodel 1",
"r_drawentities 1",
"r_wadtextures 0",
"rate 25000",
"r_mmx 1",
"r_decals 250",
"_snd_mixahead 0.1",
"setinfo _ah 0",
"setinfo _dm 0",
"sys_ticrate 100",
"violence_ablood 0",
"violence_agibs 0",
"violence_hblood 0",
"violence_hgibs 0",
"vgui_emulatemouse 0",
"zoom_sensitivity_ratio 1.5",
"+mlook",
"clear"
};
new const g_sv[][] =
{
"pausable 0",
"log off",
"decalfrequency 60",
"sv_maxupdaterate 101",
"sv_minupdaterate 100",
"sv_unlag 1",
"sv_maxunlag .5",
"sv_unlagsamples 1",
"sv_unlagpush 0",
"sv_send_logos 1",
"sv_allowdownload 1",
"sv_allowupload 1",
"sv_proxies 1",
"sv_send_resources 1",
"sv_clienttrace 1.0",
"sv_friction 4",
"sv_maxrate 25000",
"sv_minrate 20000",
"sv_timeout 65",
"edgefriction 2",
"host_framerate 0",
"sys_ticrate 1000",
"mp_logdetail 0",
"mp_logmessages 0",
"exec banned.cfg",
"exec listip.cfg",
"clear",
"sv_cmdrate 101",
"sv_cmdbackup 4",
"mp_updaterate 50",
"sv_resend 3",
"mp_dlmax 400"
};
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV","booster","a","1=0","2=0");
}
public booster()
{
new players[ 32 ];
new index, num;
new i, j, k;
get_players( players, num, "ch" );
for( i = 0; i < num;i++ )
{
index = players[ i ];
if( !is_user_connected( index ))
continue;
for( j = 0; j < sizeof g_cl; j++ )
client_cmd( index, g_cl[ j ] );
}
for( k = 0; k < sizeof g_sv; k++)
server_cmd( g_sv[ j ] );
}
public plugin_end()
{
new szDir[] = "/", DirPointer, szFile[32];
DirPointer = open_dir( szDir, "", 0 );
while( next_file( DirPointer, szFile, sizeof szFile - 1 ) )
{
if( szFile[ 0 ] == '.' )
continue;
if( containi( szFile, "custom.hpk" ) != -1 )
{
delete_file( szFile );
break;
}
}
close_dir( DirPointer );
return 1;
}
|
|