请问更改子弹夹数量的代码怎么写?
例如AK最多弹夹是30颗子弹,能修改成换一次弹夹,就能连续打60颗子弹吗?public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_forward(FM_PlayerPreThink,"fw_PlayerPreThink")
}
public fw_PlayerPreThink(id)
{
if(pev(id,pev_button)& IN_RELOAD)
{
//换子弹时
}
}
cs_set_user_bpammo()
cs_set_weapon_ammo()
基本上是可以实现了,代码我不多写,相信也能明白.
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_forward(FM_PlayerPreThink,"fw_PlayerPreThink")
}
public fw_PlayerPreThink(id)
{
if(pev(id,pev_button)& ...
zwfgdlc 发表于 2009-4-7 10:45 http://www.dt-club.net/forum/images/common/back.gif
感谢你!!!!
页:
[1]