求大神翻译
本帖最后由 ld114665738 于 2017-4-19 22:50 编辑求大神翻译此AMXX文件为SMA,多多感谢! 怎么悬赏啊?第一次发帖{:6_177:} ld114665738 发表于 2017-4-19 22:59
怎么悬赏啊?第一次发帖
还要下载?为何不直接发要翻译的内容? tly111222 发表于 2017-4-20 09:03
还要下载?为何不直接发要翻译的内容?
是个AMXX文件,本人菜鸟不会发。。 ld114665738 发表于 2017-4-20 21:18
是个AMXX文件,本人菜鸟不会发。。
哎!我的错,没仔细看!
原来是AMXX插件,把已经编译好的插件,在反编译成SMA源码,难度很大很大。
你还是说明下插件的功能,让大神重新帮你写一个还简单点。 tly111222 发表于 2017-4-21 08:40
哎!我的错,没仔细看!
原来是AMXX插件,把已经编译好的插件,在反编译成SMA源码,难度很大很大。
你还 ...
{:6_194:}这个插件很吊的,优化服务器的,是从国外网站下来的,所以说很想翻译下 ld114665738 发表于 2017-4-21 09:17
这个插件很吊的,优化服务器的,是从国外网站下来的,所以说很想翻译下 ...
介绍:
此插件可以优化你的CS1.6伺服器里面的指令,
从而优化你CS1.6伺服器,
令你的CS1.6伺服器运行更顺畅~
-------------------------------------------------------------
指令:
//0 = 关闭Amxx Booster插件
//1 = 只优化伺服器
//2 = 只优化客户端
//3 = 优化客户端和伺服器
//4 = 优化客户端和伺服器,并在客户端执行优化指令来减低错误
//5 = 优化客户端和伺服器,并执行一些可能会在GLP使用的指令(官方推荐/隐蔽性优化)
amx_booster "5"
//开启强制PING值功能
amx_booster_ping_on "1"
//强制PING值最大值,最大值为4500(默认关闭)
amx_booster_ping_max "-1"
//强制PING值最小值(默认关闭)
amx_booster_ping_max "-1"
//强制PING值是否会影响客户端
amx_booster_ping_client "1"
//什么类型的客户端会被影响(详见users.ini)
amx_booster_ping_flags "ABZ"
//强制PING值是否会影响BOT/CPU玩家
amx_booster_ping_bots "0"
//开启优化客户端进入伺服器速度功能
amx_booster_client_startup_enablefix "1"
//优化客户端"rate"指令数值
amx_booster_client_startup_rate "25000"
//优化客户端"fps_max"指令数值
amx_booster_client_startup_fpsmax "201.0"
//优化客户端"cl_cmdrate"指令数值
amx_booster_client_startup_cmdrate "101.0"
//优化客户端"cl_updaterate"指令数值
amx_booster_client_startup_updaterate "101.0"
//优化客户端"ex_interp"指令数值
amx_booster_client_startup_exinterp "0.10"
//优化客户端"ex_extrapmax"指令数值
amx_booster_client_startup_extrapmax "1.20" 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;
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;
}
tly111222 发表于 2017-4-21 09:22
AMXX Booster (v.1.0) 源码
#include
#include
这么快就被你查到源头了{:6_194:}这个SMA是1.0的,这个是2.0版的,关键我现在就想改一个参数改不了,默认的玩家ex_interp改成0.01改不了{:6_177:} ld114665738 发表于 2017-4-21 09:28
这么快就被你查到源头了这个SMA是1.0的,这个是2.0版的,关键我现在就想改一个参数改不了,默认 ...
{:6_170:} {:6_170:} {:6_170:}
页:
[1]
2