>> AMXX插件提供,AMXX插件分享
→ [原创]版主请进来帮帮新手!!
您是本帖的第 952 个阅读者
标题:[原创]版主请进来帮帮新手!!
战队:逃兵
[原创]版主请进来帮帮新手!!
请求版主 帮忙加个权限 ···拜托了这个是开镜插件!!/* 本插件由 AMXX-Studio 中文版自动生成*//* UTF-8 func by
*/#include &amxmodxinclude &amxmiscinclude &cstrikeinclude &fakemeta_utilinclude &hamsandwichdefine PLUGIN_NAME&"New Plug-In"#define PLUGIN_VERSION&"1.0"#define PLUGIN_AUTHOR&"Love灬Weiwei"#define WEAPON_CSW CSW_M4A1#define WEAPON_ENT "weapon_m4a1"#define WEAPON_RELOAD_TIME 4.0#define WEAPON_DRAW_TIME 2.0#define WEAPON_ADDSIL_TIME 1.8#define WEAPON_SHOOT_TIME 2.2#define TASK_SHOOT 1234enum {&anim_idle,&anim_reload,&anim_draw,&anim_shoot1,&anim_shoot2,&anim_shoot3,&anim_add,&anim_idle_unsil,}new g_reloading[33],g_addsil[33],g_shooting[33],g_hasDoneCurWeap[33]const m_pPlayer = 41&&& //用于寻找实体主人const m_flNextPrimaryAttack = 46public plugin_init(){®ister_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);®ister_forward(FM_CmdStart, "forward_cmdstart")®ister_forward(FM_UpdateClientData, "UpdateClientData_Post", 1)&®ister_event("CurWeapon","Current_Weapon","be","1=1")&&RegisterHam(Ham_Weapon_PrimaryAttack, WEAPON_ENT, "fw_WeapPriAttack", 1)&RegisterHam(Ham_Weapon_Reload, WEAPON_ENT, "fw_WeaponReload",1);&RegisterHam(Ham_Item_Deploy, WEAPON_ENT, "fw_WeaponDeployPost", 1);&g_grenade_access = register_cvar("amx_grenade_access", "p");&//在此处添加您的代码...}public native_playanim(player,anim){&set_pev(player, pev_weaponanim, anim)&message_begin(MSG_ONE, SVC_WEAPONANIM, {0, 0, 0}, player)&write_byte(anim)&write_byte(pev(player, pev_body))&message_end()}public forward_cmdstart(id, uc_handle, seed){&if(!is_user_alive(id) || get_user_weapon(id) != WEAPON_CSW)&&return PLUGIN_HANDLED&&&if((get_uc(uc_handle, UC_Buttons) & IN_ATTACK2) && !(pev(id, pev_oldbuttons) & IN_ATTACK2) )&{&&if(!g_reloading[id] && !g_addsil[id])&&{&&&if(cs_get_user_zoom(id) == CS_SET_AUGSG552_ZOOM)&&&{&&&&cs_set_user_zoom(id,CS_RESET_ZOOM,1)&&&}&&&else &&&{&&&&cs_set_user_zoom(id,CS_SET_AUGSG552_ZOOM,1)&&&}&&&&&&emit_sound(id, CHAN_ITEM, "weapons/zoom.wav", 0.20, 2.40, 0, 100)&&}&}&&if( get_uc(uc_handle, UC_Impulse) ==& 201 && !g_reloading[id] && !g_addsil[id] && !g_shooting[id])&{&&cs_set_user_zoom(id, CS_RESET_ZOOM, 0)&&&&remove_task(id)&&g_addsil[id] = true&&set_task(WEAPON_ADDSIL_TIME,"Finish_addSil",id)&&&&new ent = fm_find_ent_by_owner(-1, WEAPON_ENT,id)&&&&if(cs_get_weapon_silen(ent))&&{&&&cs_set_weapon_silen(ent,0,1)&&}&&&&&else&&{&&&cs_set_weapon_silen(ent,1,1)&&&}&&&&&}&new cmd&&if(g_addsil[id])&{&&if((cmd = get_uc(uc_handle, UC_Buttons)) & IN_ATTACK )&&{&&&cmd &= ~IN_ATTACK&&&set_uc(uc_handle, UC_Buttons, cmd)&&}&&&&&&if((cmd = get_uc(uc_handle, UC_Buttons)) & IN_RELOAD )&&{&&&cmd &= ~IN_RELOAD&&&set_uc(uc_handle, UC_Buttons, cmd)&&}&&&}&&if((cmd = get_uc(uc_handle, UC_Buttons)) & IN_ATTACK2 )&{&&cmd &= ~IN_ATTACK2&&set_uc(uc_handle, UC_Buttons, cmd)&}&&&&&&return PLUGIN_HANDLED}public Finish_WeapReload(id){&g_reloading[id] = false&}public Finish_addSil(id){&g_addsil[id] = false&&if(is_user_alive(id) && get_user_weapon(id) == WEAPON_CSW)&{&&new ent = fm_find_ent_by_owner(-1, WEAPON_ENT,id)&&&&if(cs_get_weapon_silen(ent))&&&native_playanim(id,anim_idle)&&else&&&native_playanim(id,anim_idle_unsil)&}}public Finish_shoot(taskid){&new id = taskid-TASK_SHOOT&&g_shooting[id] = false}public Current_Weapon(id){&if(!g_hasDoneCurWeap[id] && get_user_weapon(id) != WEAPON_CSW)&{&&remove_task(id)&&remove_task(id+TASK_SHOOT)&&g_reloading[id] = false&&g_addsil[id] = false&&g_shooting[id] = false&&g_hasDoneCurWeap[id] = true&}}public UpdateClientData_Post( id, sendweapons, cd_handle ) { &if(!is_user_alive(id) || !g_addsil[id] || get_user_weapon(id) != WEAPON_CSW)&&return PLUGIN_HANDLED&&set_cd(cd_handle, CD_ID, 1); &&return PLUGIN_CONTINUE}public fw_WeaponReload(weapon){&&id = get_pdata_cbase(weapon, m_pPlayer, 4);&&cs_set_user_zoom(id, CS_RESET_ZOOM, 0)&&&remove_task(id)&g_reloading[id] = true&set_task(WEAPON_RELOAD_TIME,"Finish_WeapReload",id)}public fw_WeaponDeployPost(weapon){&&id = get_pdata_cbase(weapon, m_pPlayer, 4);&&remove_task(id)&g_reloading[id] = true&set_task(WEAPON_DRAW_TIME,"Finish_WeapReload",id)&&g_hasDoneCurWeap[id] = false&&client_print(id,print_chat,"欢迎使用开镜精华,右键开镜,T键使用特殊功能。")}public fw_WeapPriAttack(weapon){&&id = get_pdata_cbase(weapon, m_pPlayer, 4);&&if(cs_get_user_zoom(id) == CS_SET_AUGSG552_ZOOM)&{&&static Float:weap_delay &&weap_delay = get_pdata_float(weapon, 46, 4) * 1.5&&&&set_pdata_float(weapon, m_flNextPrimaryAttack, weap_delay, 4)&}&&remove_task(id+TASK_SHOOT)&g_shooting[id] = true&set_task(WEAPON_SHOOT_TIME,"Finish_shoot",id+TASK_SHOOT)}/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset134 T}}\n\\ viewkind4\\ uc1\\ pard\\ lang2052\\ f0\\ fs16 \n\\ par }*/
积分:1803
战队:逃兵
什么意思啊
战队:逃兵
不懂插件的人。不解释
战队:逃兵
hmmmmmmmmm
战队:逃兵
版主大大···
头衔:╄DEV!L-冷酷
索币:1406
文章:4155
积分:30870
战队:逃兵
我是让版主老大 帮忙加入权限哇··郁闷这个是源码
战队:逃兵
战队:逃兵
用户已被锁定
战队:逃兵
版主帮帮忙啊
&&快速回复:[原创]版主请进来帮帮新手!!
内容限制: 字节.
粤ICP备号Powered By
页面执行时间 0.29688 秒, 3 次数据查询cs amxx 为什么编译不到fakemeta_util-中国学网-中国IT综合门户网站-提供健康,养生,留学,移民,创业,汽车等信息
> 信息中心 >
cs amxx 为什么编译不到fakemeta_util
来源:互联网 发表时间: 23:07:48 责任编辑:鲁晓倩字体:
为了帮助网友解决“cs amxx 为什么编译不到fakemeta_util”相关的问题,中国学网通过互联网对“cs amxx 为什么编译不到fakemeta_util”相关的解决方案进行了整理,用户详细问题包括:RT,我想知道:cs amxx 为什么编译不到fakemeta_util,具体解决方案如下:解决方案1:晕,这个问题简单
首先fakemeta_util根本不是一个插件,而是一个DLL一个模块
所以说楼上基本错误
这种情况一般是你没有fakemeta_util这个头文件,你可以去网上下载一个(一般的丧尸插件包里的编译器可能带这个文件),然后把这个文件放到你的compile/include目录下,再编译就解决了
1个回答23个回答7个回答2个回答5个回答7个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答
相关文章: