|
大家好,我是TAkkEt
本次教程:【如何修改买枪菜单】
工具:
UltraEdit 32简体中文增强版 14.20.0
我一发到论坛了,可以下载
下载地址:
首先,我们先下载丧失感染插件
如,^Ex@LAtExT站队丧失感染v4.1内部版
我们先打开,找到
^Ex@LAtExT站队丧失感染v4.1内部版\cstrike\addons\amxmodx\scripting
里面的zombie_plague40.sma文件
用我们刚才下载的UE(UltraEdit 32简体中文增强版 14.20.0)
打开文件,(对准zombie_plague40.sma文件,鼠标右键点UltraEdit)
然后我们找到:
// Buy Menu: Primary and Secondary Weapons
new const g_primary_items[][] = { "weapon_galil", "weapon_famas", "weapon_m4a1", "weapon_ak47", "weapon_sg552", "weapon_aug", "weapon_scout",
"weapon_m3", "weapon_xm1014", "weapon_tmp", "weapon_mac10", "weapon_ump45", "weapon_mp5navy", "weapon_p90" }
new const g_secondary_items[][] = { "weapon_glock18", "weapon_usp", "weapon_p228", "weapon_deagle", "weapon_fiveseven", "weapon_elite" }
然后我们看这项是自动步枪的购买菜单:
// Buy Menu: Primary and Secondary Weapons
new const g_primary_items[][] = { "weapon_galil", "weapon_famas", "weapon_m4a1", "weapon_ak47", "weapon_sg552", "weapon_aug", "weapon_scout",
"weapon_m3", "weapon_xm1014", "weapon_tmp", "weapon_mac10", "weapon_ump45", "weapon_mp5navy", "weapon_p90" }
这是手枪的购买菜单
new const g_secondary_items[][] = { "weapon_glock18", "weapon_usp", "weapon_p228", "weapon_deagle", "weapon_fiveseven", "weapon_elite" }
如我我们想调成只能购买自动步枪:galil,famas,sg552,aug,mp5navy,xm1014
手枪:usp,glock18
那我们就调成:
// Buy Menu: Primary and Secondary Weapons
new const g_primary_items[][] = { "weapon_galil", "weapon_famas", "weapon_sg552", "weapon_aug",
"weapon_xm1014", "weapon_mp5navy" }
new const g_secondary_items[][] = { "weapon_glock18", "weapon_usp" }
这样,我们就做好了购买菜单,可以属于我们自己的了!
做完这些,我们需要把做好的东西生成成AMXX文件
首先,
(UE菜单,改好后,继续同上教程)
我们点,文件,点另存为,点找到格式改成UTF-8 - 无BOM
然后我们打开^Ex@LAtExT站队丧失感染v4.1内部版\cstrike\addons\amxmodx\scripting
把做好的文件放到这里(刚保存的SMA,记住我要把它保存到和以前文件一个目录)
然后把做好的文件拖到compile这个文件上
他就会出现生成文件的菜单,生成后,会出现
// AMXXPC compile.exe
// by the AMX Mod X Dev Team
// Fixed by Rulzy.
////文件名
// Header size: .............
// God size: .............
// Date size: .............
//Total requirements: .............
// Done.
//
// Compilation Time 0.22 sec
//----------------------------------------------------------------------------------
press Enter to exit
^Ex@LAtExT站队论坛:
主论坛:http://exlatext.ttsite.com
分论坛:http://takket.ttsite.com
本站队合作网吧【心缘网吧】
合作服务器:
服务器1号:222.84.241.212:27015
服务器2号:222.84.241.189:27015
服务器3号:125.73.128.158:27015
-----------------联系方式---------------------------------------------------
- CSid:TAkkEt
- CS年龄:7年
- QQ:525730335(请注明)
- 邮箱:525730335@qq.com / zzxzzx0213@126.com
- ------------------------------------------------------------------------------ |
|