搜索
查看: 3023|回复: 2

[AMXX 带源码] 设置武器弹药+装备

[复制链接]
发表于 2010-3-19 15:22:15 | 显示全部楼层 |阅读模式 来自 中国–江苏–苏州
Features :
Change the max bpammo you can carry (1 cvar per bpammo type = 10 cvars)
Change the cost of 1 bpammo (1 cvar per bpammo type = 10 cvars)
Change amount of bullet you got in a bought bpammo (not in the gun) (1 cvar per bpammo type = 10 cvars)

Suggestion : Use this plugin with Weapons MaxClip plugin.



.: Cvars :.

As there is 30 cvars, i'm just gonna write a cvar type (XXX replaces the name of the ammo type, see Ammo Names below):
amx_XXX_max < Amount > (better to set <255 so the right number is displayed)
Max XXX bpammo that you can carry
amx_XXX_cost < Price >
Cost of 1 XXX bpammo
amx_XXX_num < Amount >
Numver of bullets in 1 XXX bpammo that you buy



.: Ammo Names and Corresponding Weapons :.


9mm : elite , glock18 , mp5navy , tmp
57mm : fiveseven , p90
50ae : deagle
45acp : mac10 , ump45 , usp
357sig : p228
762nato : scout , g3sg1 , ak47
556nato : aug , sg550 , galil , famas , m4a1 , sg552
buckshot : m3 , xm1014
338magnum : awp
556natobox : m249



.: Config Examples :.


I suggest you to not edit the .sma to change cvars, as cvars in .sma are set to default cs values.
So just put them in amxx.cfg.
I recommand to decrease the cost if you increase the number, because some player don't use buyammo1/2 commands,
so they will buy all bpammo that is avaible and then they can loose lot of money ;)

If you want to change max bpammo that you can carry for shotguns (m3 and xm1014) to 100 (default is 32) :
amx_buckshot_max 100

If you want to change the cost of 1 m4a1 bpammo to 20 (default is 30) :
amx_556nato_cost 20

If you want to get 15 bullets instead of 12 whan you buy 1 bpammo for you usp :
amx_45acp_num 15

You can past this in amxx.cfg (those are default cs values, change them for your needs):

Code:
// elite , glock18 , mp5navy , tmp
amx_9mm_max 120
amx_9mm_cost 20
amx_9mm_num 30

// fiveseven , p90
amx_57mm_max 100
amx_57mm_cost 50
amx_57mm_num 50

// deagle
amx_50ae_max 35
amx_50ae_cost 40
amx_50ae_num 7

// mac10 , ump45 , usp
amx_45acp_max 100
amx_45acp_cost 25
amx_45acp_num 12

// p228
amx_357sig_max 52
amx_357sig_cost 50
amx_357sig_num 13

// scout , g3sg1 , ak47
amx_762nato_max 90
amx_762nato_cost 80
amx_762nato_num 30

// aug , sg550 , galil , famas , m4a1 , sg552
amx_556nato_max 90
amx_556nato_cost 60
amx_556nato_num 30

// m3 , xm1014
amx_buckshot_max 32
amx_buckshot_cost 65
amx_buckshot_num 8

// awp
amx_338magnum_max 30
amx_338magnum_cost 125
amx_338magnum_num 10

// m249
amx_556natobox_max 200
amx_556natobox_cost 60
amx_556natobox_num 30
.: Modules :.


Fakemeta
Hamsandwich



.: Credits :.


VEN for CS Weapons Informations
HLSDK of course


.: ScreenShots :.



With this setting :
// deagle
amx_50ae_max 50 //35
amx_50ae_cost 1 //40
amx_50ae_num 9 //7

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
发表于 2010-4-26 20:54:47 | 显示全部楼层 来自 中国–黑龙江–大庆
抑郁 、、看不懂额
回复

使用道具 举报

发表于 2013-3-29 22:28:32 | 显示全部楼层 来自 中国–四川–达州
额复杂看不懂- -
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表