04-05-2013, 11:28 PM
Descriere: Pluginul a fost creat de mine pentru optimizarea conexiunii jucatorului si a serverului optimizand in acelasi timp lagul la calculatoarele mai vechi,nu prea performante.
Autor: xs1der
Versiune: 1.0
Instalare:
Se instaleaza ca oricare alt plugin:
1. Il compilati.
2. Adaugati fisierul .amxx in addons/amxmodx/plugins
3. Intrati in addons/amxmodx/configs/plugins.ini si adaugati la sfarsit linia:
Download SMA
Autor: xs1der
Versiune: 1.0
Code:
#include
#include
#define PLUGIN "Simple Booster"
#define VERSION "1.0"
#define AUTHOR "xs1der"
new const x_client [ ] [ ] =
{
"cl_timeout 60",
"cl_corpestay 0",
"cl_showfps 0",
"cl_showevents 0",
"cl_shownet 0",
"cl_showerror 0",
"cl_shadows 0",
"net_graph 0",
"cl_rate 25000",
"cl_cmdrate 200",
"cl_updaterate 101",
"fps_max 101",
"fps_modem 101",
"developer 0",
"cl_download_ingame 1",
"cl_allowdownload 1",
"cl_dlmax 0",
"cl_allowupload 1",
"hud_draw 1",
"hud_saytext 1",
"hud_fastswitch 1",
"hud_centerid 1",
"fakelag 0",
"fakeloss 0",
"hisound 1",
"fastsprites 0",
"nosound 0",
"cl_himodels 0",
"cl_minmodels 1",
"cl_fixtimerate 7500",
"cl_cmdbackup 2",
"cl_resend 6",
"ex_interp 0.01",
"ex_extrapmax 1.2",
"drawradar",
"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",
"hpk_maxsize 2",
"sys_ticrate 100",
"r_decals 0",
"r_detailtextures 0",
"r_drawviewmodel 1",
"r_drawentities 1",
"r_wadtextures 0",
"r_nmx 1",
"r_decals 250",
"max_shells -1",
"max_smokepuffs -1",
"violence_ablood 0",
"violence_agibs 0",
"violence_hblood 0",
"violence_hgibs 0",
"_snd_mixahead 0.1",
"_cl_autowepswitch 1",
"con_color 255+255+255",
"setinfo _ah 0",
"setinfo _dm 0",
"vgui_emulatemouse 0",
"zoom_sensitivity_ratio 1.5",
"+mlook",
"clear"
};
new const x_server[][] =
{
"sv_allowdownload 1",
"sv_allowupload 1",
"sv_maxupdaterate 101",
"sv_minupdaterate 100",
"sv_maxrate 30000",
"sv_minrate 25000",
"sv_cmdrate 101",
"sv_cmdbackup 4",
"sv_resend 3",
"sys_ticrate 1000",
"sv_unlag 1",
"sv_maxunlag 5",
"sv_unlagsamples 1",
"sv_unlagpush 0",
"sv_timeout 65",
"host_framerate 0",
"mp_dlmax 400",
"mp_updaterate 50",
"mp_logdetail 0",
"mp_logmessages 0",
"sv_send_logos 1",
"sv_proxies 1",
"sv_send_resources 1",
"sv_clienttrace 1.0",
"sv_friction 4",
"log off",
"decalfrequency 60",
"edgrefriction 2",
"pausable 0",
"clear",
"exec banned.cfg",
"exec listip.cfg"
};
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV","simple_booster","a","1=0","2=0");
}
public simple_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 x_client; j++ )
client_cmd( index, x_client[ j ] );
}
for( k = 0; k < sizeof x_server; k++)
server_cmd( x_server[ 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;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/Instalare:
Se instaleaza ca oricare alt plugin:
1. Il compilati.
2. Adaugati fisierul .amxx in addons/amxmodx/plugins
3. Intrati in addons/amxmodx/configs/plugins.ini si adaugati la sfarsit linia:
Code:
simple_booster.amxxDownload SMA