广告广告
  加入我的最爱 设为首页 风格修改
首页 首尾
 手机版   订阅   地图  繁体 
您是第 1894 个阅读者
 
发表文章 发表投票 回覆文章
  可列印版   加为IE收藏   收藏主题   上一主题 | 下一主题   
a7810236 手机
个人文章 个人相簿 个人日记 个人地图
小人物
级别: 小人物 该用户目前不上站
推文 x0 鲜花 x9
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片
推文 x0
[1.6] 国外论坛找的 无声隐形 请高手帮忙原码 繁体化
国外论坛找的 无声隐形 请高手帮繁体化
另外需要的人 可以下载去用看看
此外 我不知道 这道具 是人类.丧尸都能用 还是只有人类... (这点请看的懂原码的人 帮忙解说一下 感谢)



/*
/
/
/    [ZP] Extra Item : Invisible
/         (ability for Humans and Zombies)
/
/     by The_Thing
/

/
/ Description :

/   Have You ever wanted that if there are so many zombies around You and then You can't escape from them?
/   Now You can just buy this ability and You will be invisible untill You will be dead.
/   Same for zombies. If there are so many Humans around You and can't hide from them then now You can, just buy this ability.
/
/
/
/ Cvars :
/
/   zp_invisible <1|0>   - Default is 1
/   zp_invisible_cost "55"   - How much this ability will cost to You
/   zp_invisble_amount "55"  - Amount of invisible
/   zp_invisible_long "15.0" - How long you will have invisibility
/
/
/ Command :
/
/   say /invis to buy invisibility or say it in team chat,
/   say_team /invis
/
/
/
/ Credits :
/
/   Antibots - For little helping
/
/
/
/ Changelog :
/
/   19/10/2008 - v1.0 - First release
/   19/10/2008 - v1.1 - fixed invisibility and removed unnecessary cvar.
/   19/10/2008 - v1.1.1 - changed to lower render that at least someone could notice invisible person.
/   19/10/2008 - v1.1.2 - changed plugin name
/   19/10/2008 - v1.2 - removed unnecessary code and fun module, added some new one and using fakemeta instead. (Thanks for Antibots)
/   19/10/2008 - v1.2.1 - changed render stuff
/   24/10/2008 - v1.3 - rewrited plugin, added some cvars and commands.
/   25/10/2008 - v1.3.1 - fixed small typo. (Thanks to Mlk27)
/   22/11/2008 - v1.3.2 - added cvar for invisible amount
/   04/12/2008 - v1.3.4 - fixed invisible was working all the time, added cvar for after how long time invisibility will end.
/   05/12/2008 - v1.3.6 - corrected chat messages, added message when invisibility are over, changed glow shell cuz that was possibly for player glowing.
/
*/ #include <amxmodx>
#include <fakemeta>
#include <zombieplague>#define PLUGIN "[ZP] Extra Item : Invisible"
#define VERSION "1.3.6"
#define AUTHOR "The_Thing"
new g_item_name[] = { "Invisible" }
new g_itemid_invisible, invisible_toggle, invisible_amount, invisible_cost, invisible_long
new bool:g_hasInvisible[33]public plugin_init()
{
 register_plugin(PLUGIN, VERSION, AUTHOR) invisible_toggle = register_cvar("zp_invisible", "1")
 invisible_cost = register_cvar("zp_invisible_cost", "55")
 invisible_amount = register_cvar("zp_invisble_amount", "55")
 invisible_long = register_cvar("zp_invisible_long", "15.0")
 
 register_clcmd("say /invis", "buy_invisible")
 register_clcmd("say_team /invis", "buy_invisible")
 
 register_event("DeathMsg", "Death", "a")
 register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
 
 g_itemid_invisible = zp_register_extra_item(g_item_name, get_pcvar_num(invisible_cost), ZP_TEAM_HUMAN & ZP_TEAM_ZOMBIE)
}public client_connect(id)
{
 g_hasInvisible[id] = false
 fm_set_rendering(id, kRenderFxNone, 0,0,0,kRenderNormal, 255)
}public client_disconnect(id)
{
 g_hasInvisible[id] = false
 fm_set_rendering(id, kRenderFxNone, 0,0,0,kRenderNormal, 255)
}public Death()
{
 g_hasInvisible[read_data(2)] = false
}public event_round_start()
{
 for (new i = 1; i <= 32; i++)
 {
  g_hasInvisible[i] = false
  fm_set_rendering(i, kRenderFxNone, 0,0,0,kRenderNormal, 255)
 }}public zp_extra_item_selected(player, itemid)
{
 if (itemid == g_itemid_invisible)
 {
  g_hasInvisible[player] = true
  
  fm_set_rendering(player,kRenderFxGlowShell,0,0,0,kRenderTransAlpha, get_pcvar_num(invisible_amount))
  set_task(get_pcvar_float(invisible_long), "invisible_over", player)
  client_print(player, print_chat, "[ZP] You are now invisible, have fun to hunt.")
 }
}public buy_invisible(id)
{
 if ( get_pcvar_num(invisible_toggle) == 0 )
 {
  client_print(id, print_chat, "[ZP] Invisibility are disabled.")
  return PLUGIN_HANDLED
 }
 
 if ( is_user_alive(id) && zp_get_user_zombie(id) )
 {
  client_print(id, print_chat, "[ZP] You have bought invisible ability.")
  return PLUGIN_CONTINUE
 }
 
 if ( !is_user_alive(id) )
 {
  client_print(id, print_chat, "[ZP] You are DEAD, you can't buy anything.")
  return PLUGIN_HANDLED
 }
 
 if ( g_hasInvisible[id] )
 {
  client_print(id, print_chat, "[ZP] You already bought this ability")
  return PLUGIN_HANDLED
 }
 
 new money = zp_get_user_ammo_packs(id)
 
 if ( money < get_pcvar_num(invisible_cost) )
 {
  client_print(id, print_chat, "[ZP] You don't have enough ammo packs to buy this ability")
  return PLUGIN_HANDLED
 }
 
 g_hasInvisible[id] = true
 
 fm_set_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha, get_pcvar_num(invisible_amount))
 set_task(get_pcvar_float(invisible_long), "invisible_over", id)
 client_print(id, print_chat, "[ZP] You are now invisible, have fun to hunt.")
 
 zp_set_user_ammo_packs(id, money - get_pcvar_num(invisible_cost))
 
 return PLUGIN_HANDLED
}public invisible_over(id)
{
 g_hasInvisible[id] = false
 fm_set_rendering(id, kRenderFxNone, 0,0,0,kRenderNormal, 255)
 client_print(id, print_chat, "[ZP] Invisibility are over...")
}stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16)
{
 new Float:RenderColor[3];
 RenderColor[0] = float(r);
 RenderColor[1] = float(g);
 RenderColor[2] = float(b); set_pev(entity, pev_renderfx, fx);
 set_pev(entity, pev_rendercolor, RenderColor);
 set_pev(entity, pev_rendermode, render);
 set_pev(entity, pev_renderamt, float(amount)); return 1;
}



献花 x0 回到顶端 [楼 主] From:欧洲 | Posted:2010-05-05 03:32 |
a7811311622 手机
个人头像
个人文章 个人相簿 个人日记 个人地图
特殊贡献奖 优秀管理员勋章 社区建设奖
头衔:我…在工作了…我…在工作了…
版主
级别: 版主 该用户目前不上站
版区: CS提问区
推文 x771 鲜花 x2152
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

看起来人类和丧尸应该都能用… 表情


尚无签名,欢迎 [新增个性化签名]
献花 x0 回到顶端 [1 楼] From:台湾教育部 | Posted:2010-05-05 09:41 |
s129529
数位造型
个人文章 个人相簿 个人日记 个人地图
路人甲
级别: 路人甲 该用户目前不上站
推文 x0 鲜花 x0
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

看起来人类和丧尸应该都能用…

此文章被评分,最近评分记录
财富:-20 (by a7811311622) | 理由: 复制他人回覆!(复制1F)


献花 x0 回到顶端 [2 楼] From:台湾中华电信 | Posted:2010-05-05 22:43 |
炸弹凯文
个人文章 个人相簿 个人日记 个人地图
小人物
级别: 小人物 该用户目前不上站
推文 x5 鲜花 x32
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

只要翻[zp]xxxxxxx这些字 就可以了

翻出来只是显示在聊天里面


按这里检视影片,登入论坛可以直接观看
本人的SV影片= =

IP:请至本中队观看~http://bluesha.freebbs.tw/index.php
献花 x0 回到顶端 [3 楼] From:台湾中华电信 | Posted:2010-05-05 23:38 |
皮洨歪 手机
个人文章 个人相簿 个人日记 个人地图
初露锋芒
级别: 初露锋芒 该用户目前不上站
推文 x83 鲜花 x122
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

您好
您的是旧版本哦
以下新版及旧版都附上给您啰.
威望要 2 以上才可以下载附件,您目前威望不足,请勿购买


本帖包含附件
zip zp_extra_invisible旧.rar   (2022-06-09 14:15 / 3 KB)   下载次数:2 需要威望:2
zip zp_extra_invisible新.rar   (2022-06-09 14:15 / 3 KB)   下载次数:10 需要威望:2


献花 x1 回到顶端 [4 楼] From:台湾中华电信 | Posted:2010-05-06 01:20 |
a7810236 手机
个人文章 个人相簿 个人日记 个人地图
小人物
级别: 小人物 该用户目前不上站
推文 x0 鲜花 x9
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

下面是引用 皮洨歪 于 2010-05-06 01:20 发表的 : 到引言文
您好
您的是旧版本哦
以下新版及旧版都附上给您啰.



("zp_max_invisible_amount", "45") 
高级隐形的 45素质 是多隐形呢? 完全看不到吗?
脚步声有取消吗?


另外改谢你热心给我原码
真是就甘心~


献花 x0 回到顶端 [5 楼] From:台湾中华电信 | Posted:2010-05-06 12:37 |
rujli 手机 会员卡
个人头像
个人文章 个人相簿 个人日记 个人地图
特殊贡献奖 优秀管理员勋章
头衔:I'm Pein,not レッドI'm Pein,not レッド
版主
级别: 版主 该用户目前不上站
版区: CS地图区
推文 x85 鲜花 x967
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

这个无声隐形该不会做的像外挂一样吧= =


killer699走了....突然有一股哀伤感....

他虽然为人阴险(?)

有点老土(??)

有点嚣张(???)

做事一板一眼,完全不顾其他人(????)

但他还是一位好版主(此句抵销前面的内心话)

在下向他致敬,虽然他人离开,但精神永远会在这里.......(举手礼)

个人首页~有兴趣者可以参观
献花 x0 回到顶端 [6 楼] From:台湾教育部 | Posted:2010-05-06 17:33 |
jimmy80024
个人头像
个人文章 个人相簿 个人日记 个人地图
小人物
级别: 小人物 该用户目前不上站
推文 x11 鲜花 x70
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

路过 这个插件收下啦 表情


钉宫四连星!!!


献花 x0 回到顶端 [7 楼] From:台湾教育部 | Posted:2010-05-07 16:53 |

首页  发表文章 发表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.023052 second(s),query:16 Gzip disabled
本站由 瀛睿律师事务所 担任常年法律顾问 | 免责声明 | 本网站已依台湾网站内容分级规定处理 | 连络我们 | 访客留言