廣告廣告
  加入我的最愛 設為首頁 風格修改
首頁 首尾
 手機版   訂閱   地圖  簡體 
您是第 1870 個閱讀者
 
發表文章 發表投票 回覆文章
  可列印版   加為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.015751 second(s),query:16 Gzip disabled
本站由 瀛睿律師事務所 擔任常年法律顧問 | 免責聲明 | 本網站已依台灣網站內容分級規定處理 | 連絡我們 | 訪客留言