求扔完O4后,自动切换刀的插件,不然有游戏代码BUG可以炸服!
求扔完O4后,自动切换刀的插件,不然有游戏代码BUG可以炸服!具体的我在HLSERVER的论坛版里说明了。!1.开局800元,分别够买手雷和闪光一颗
3.选择闪光,然后扔出
4.选择手雷,然后扔出
5.仅剩下刀了 直接按下切枪键Q就可以
这就是BUG。
回复: 求只能买一颗闪光的插件,不然有游戏代码BUG可以炸服!
我没试过,如果真这么严重的话,直接把闪光蛋禁止购买就是了。回复: 求只能买一颗闪光的插件,不然有游戏代码BUG可以炸服!
上传了一个买雷限制插件,cs1.6 & cz 都可用,但 cs1.5 不知是否可用,你可以试一下http://www.dt-club.net/forum/thread/71/34459.htm
回复: 求只能买一颗闪光的插件,不然有游戏代码BUG可以炸服!
限雷的话,那没雷还玩什么啊,唉~回复: 求扔完O4后,自动切换刀的插件,不然有游戏代码BUG可以炸服!
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "Jim"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon", "hook_curweapon", "be", "1=0", "2=4")
}
public hook_curweapon(id)
{
engclient_cmd(id, "weapon_knife")
}
拿去凑合用吧,有个问题就是在拿出o4之后如果你不扔而是换别的武器,它仍旧会出刀枪。带来的问题就是用雷切awp的人会郁闷。
回复: 求扔完O4后,自动切换刀的插件,不然有游戏代码BUG可以炸服!
刚才把闪光限制了只能买一颗,结果恶啊,还是能炸,看来只有切换刀了。插件无效啊。不能使用啊
回复: 求扔完O4后,自动切换刀的插件,不然有游戏代码BUG可以炸服!
Post by jim_yang#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "Jim"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon", "hook_curweapon", &q...
有个问题,买了把AWP后再买一个雷,然后AWP开镜后就很搞笑了,开镜退不出来了,换什么武器都是在AWP的开镜里。。。。
回复: 求扔完O4后,自动切换刀的插件,不然有游戏代码BUG可以炸服!
前阵子我在一个Q群里发过一个扔雷后自动切换成刀的插件源码,共享里估计还有。群号:36379132
PS:我已经退出那个群,自己去找。
回复: 求扔完O4后,自动切换刀的插件,不然有游戏代码BUG可以炸服!
再发一个效率低的,这个直接禁止lastinv命令#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "Jim"
new last_wp
new current
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("lastinv", "hook_lastinv")
register_event("CurWeapon", "hook_curweapon", "be")
}
public hook_curweapon(id)
{
static wp
wp = read_data(2)
if(read_data(1))
current = wp
else
last_wp = wp
}
public hook_lastinv(id)
{
if(last_wp == CSW_HEGRENADE && current == CSW_KNIFE && !user_has_weapon(id, CSW_HEGRENADE))
return PLUGIN_HANDLED
return PLUGIN_CONTINUE
}
回复: 求扔完O4后,自动切换刀的插件,不然有游戏代码BUG可以炸服!
/* Plugin generated by AMXX-Studio */#include <amxmodx>
#include <fakemeta>
#define PLUGIN_NAME "knife_after_throw_nade"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "CZ*Ryu"
#define MAXPLAYERS 32
new iUserLastWeaponID
new const sWeaponBox[] = "weaponbox"
new const sNamedEnt_ArmouryEntity[] = "armoury_entity"
new const sWeaponKnife[] = "weapon_knife"
new const sModel_Weaponbox_w[] = "models/w_weaponbox.mdl"
//new const sModel_FlashBang_w[] = "models/w_flashbang.mdl"
new const sModel_HeGrenade_w[] = "models/w_hegrenade.mdl"
new const sModel_SmokeGrenade_w[] = "models/w_smokegrenade.mdl"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_event("CurWeapon", "event_CurWeapon_CheckWeapon", "be", "1>0", "2!4", "2!9", "2!29"/*, "2!25"*/)
register_forward(FM_SetModel, "FM_SetModel_SetKnife")
}
public event_CurWeapon_CheckWeapon(id)
{
iUserLastWeaponID = read_data(2)
}
public FM_SetModel_SetKnife(iEnt, sModel[])
{
if ( !pev_valid(iEnt)
|| equal(sModel, sModel_Weaponbox_w)
|| ( !equal(sModel, sModel_HeGrenade_w) && !equal(sModel, sModel_SmokeGrenade_w)/* && !equal(sModel, sModel_FlashBang_w)*/ ) )
return FMRES_IGNORED
new sClass
pev(iEnt, pev_classname, sClass, sizeof sClass - 1 )
if ( equal(sClass, sWeaponBox) || equal(sClass, sNamedEnt_ArmouryEntity) )
return FMRES_IGNORED
new iOwner = pev(iEnt, pev_owner)
new iWeaponID = iUserLastWeaponID
if ( iOwner && is_user_alive(iOwner) && pev(iOwner, pev_weapons) & (1 <<iWeaponID) )
{
get_weaponname(iWeaponID, sClass, sizeof sClass - 1 )
client_cmd(iOwner, sClass)
client_cmd(iOwner, sWeaponKnife)
}
return FMRES_IGNORED
}
谢谢楼上所有人,我找到了。那个群里的我发一下,
页:
[1]