廣告廣告
  加入我的最愛 設為首頁 風格修改
首頁 首尾
 手機版   訂閱   地圖  簡體 
您是第 2141 個閱讀者
 
發表文章 發表投票 回覆文章
  可列印版   加為IE收藏   收藏主題   上一主題 | 下一主題   
narto2008
個人文章 個人相簿 個人日記 個人地圖
小人物
級別: 小人物 該用戶目前不上站
推文 x13 鮮花 x12
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片
推文 x0
[1.6][插件] (高手請入)改了sma為甚麼轉不到amxx?
/*================================================================================

    -----------------------------------
    -*- [BB] Default Zombie Classes -*-
    -----------------------------------

    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~

    This plugin adds the default zombie classes from Zombie Plague
    into Base Builder. All credit belongs to MeRcyLeZZ.

    All classes have been balanced, but feel free to edit them if
    you are not satisfied.

================================================================================*/

#include <amxmodx>
#include <basebuilder>
#include <hamsandwich>
#include <fun>
#include <cstrike>

/*================================================================================
 [Plugin Customization]
=================================================================================*/

// Classic Zombie Attributes
new const zclass1_name[] = { "一般喪屍" }
new const zclass1_info[] = { "能力平均" }
new const zclass1_model[] = { "bb_zombie_allinone" }
new const zclass1_clawmodel[] = { "v_knife_bb_zombie_allinone" }
const zclass1_health = 3000
const zclass1_speed = 260
const Float:zclass1_gravity = 1.0
const zclass1_adminflags = ADMIN_ALL

// Fast Zombie Attributes
new const zclass2_name[] = { "速度喪屍" }
new const zclass2_info[] = { "疾速" }
new const zclass2_model[] = { "bb_zombie_fast" }
new const zclass2_clawmodel[] = { "v_knife_bb_zombie_fast" }
const zclass2_health = 2000
const zclass2_speed = 325
const Float:zclass2_gravity = 1.0
const zclass2_adminflags = ADMIN_ALL

// Jumper Zombie Attributes
new const zclass3_name[] = { "跳躍喪屍" }
new const zclass3_info[] = { "疾跳" }
new const zclass3_model[] = { "bb_zombie_jump" }
new const zclass3_clawmodel[] = { "v_knife_bb_zombie_jump" }
const zclass3_health = 2500
const zclass3_speed = 285
const Float:zclass3_gravity = 0.5
const zclass3_adminflags = ADMIN_ALL

// Tanker Zombie Attributes
new const zclass4_name[] = { "血牛喪屍" }
new const zclass4_info[] = { "肥屍" }
new const zclass4_model[] = { "bb_zombie_Big" }
new const zclass4_clawmodel[] = { "v_knife_bb_zombie_big" }
const zclass4_health = 4000
const zclass4_speed = 210
const Float:zclass4_gravity = 1.0
const zclass4_adminflags = ADMIN_ALL
#define TANK_ARMOR 200

// Limpid Zombie Attributes
new const zclass4_name[] = { "透明喪屍" }
new const zclass4_info[] = { "半透明" }
new const zclass4_model[] = { "bb_zombie_limpid" }
new const zclass4_clawmodel[] = { "v_knife_bb_zombie_limpid" }
const zclass4_health = 3000
const zclass4_speed = 270
const Float:zclass4_gravity = 1.0
const zclass4_adminflags = ADMIN_ALL
#define TANK_ARMOR 0

// Nkb Zombie Attributes
new const zclass4_name[] = { "改造喪屍" }
new const zclass4_info[] = { "無後座" }
new const zclass4_model[] = { "bb_zombie_nkb" }
new const zclass4_clawmodel[] = { "v_knife_bb_zombie_nkb" }
const zclass4_health = 2000
const zclass4_speed = 300
const Float:zclass4_gravity = 0.9
const zclass4_adminflags = ADMIN_ALL
#define TANK_ARMOR 300

// Leech Zombie Attributes
new const zclass4_name[] = { "鐵造喪屍" }
new const zclass4_info[] = { "額外加血" }
new const zclass4_model[] = { "bb_zombie_leech" }
new const zclass4_clawmodel[] = { "v_knife_bb_zombie_leech" }
const zclass4_health = 5000
const zclass4_speed = 200
const Float:zclass4_gravity = 1.5
const zclass4_adminflags = ADMIN_ALL
#define TANK_ARMOR 1000

/*============================================================================*/

new g_zclass_tanker

// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
    register_plugin("建造基地-喪屍種類", "6.5", "Tirant")

    // Register all classes
    bb_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, 0.0, zclass1_adminflags)
    bb_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, 0.0, zclass2_adminflags)
    bb_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, 0.0, zclass3_adminflags)
    bb_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, 0.0, zclass4_adminflags)
    bb_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass5_speed, zclass5_gravity, 0.0, zclass5_adminflags)
    bb_register_zombie_class(zclass6_name, zclass6_info, zclass6_model, zclass6_clawmodel, zclass6_health, zclass6_speed, zclass6_gravity, 0.0, zclass6_adminflags)
    g_zclass_tanker = bb_register_zombie_class(zclass7_name, zclass7_info, zclass7_model, zclass7_clawmodel, zclass7_health, zclass7_speed, zclass7_gravity, 0.0, zclass7_adminflags)
}

#if defined TANK_ARMOR
public plugin_init()
{
    RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
}

public ham_PlayerSpawn_Post(id)
{
    if (!is_user_alive(id))
        return ;

    if (bb_is_user_zombie(id) && bb_get_user_zombie_class(id) == g_zclass_tanker)
    {
        give_item(id, "item_assaultsuit");
        cs_set_user_armor(id, TANK_ARMOR, CS_ARMOR_VESTHELM);
    }
}


[ 此文章被narto2008在2011-10-09 13:13重新編輯 ]



獻花 x0 回到頂端 [樓 主] From:香港和記電訊 | Posted:2011-10-09 12:25 |
cplnam
個人文章 個人相簿 個人日記 個人地圖
小人物
級別: 小人物 該用戶目前不上站
推文 x0 鮮花 x41
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

你有沒有basebuilder.inc的檔案?
其他#include <xxx> 的都要有xxx.inc的檔案


獻花 x0 回到頂端 [1 樓] From:臺灣中華電信股份有限公司 | Posted:2011-10-09 13:51 |
觀眾甲
個人頭像
個人文章 個人相簿 個人日記 個人地圖
特殊貢獻獎
小有名氣
級別: 小有名氣 該用戶目前不上站
推文 x318 鮮花 x963
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

當然了...
其他喪屍根本沒有寫出#define TANK_ARMOR 0的命令
...大概這樣?_?


獻花 x0 回到頂端 [2 樓] From:未知地址 | Posted:2011-10-09 14:11 |
a7811311622 手機
個人頭像
個人文章 個人相簿 個人日記 個人地圖
特殊貢獻獎 優秀管理員勳章 社區建設獎
頭銜:我…在工作了…我…在工作了…
版主
級別: 版主 該用戶目前不上站
版區: CS提問區
推文 x771 鮮花 x2152
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

沒給轉檔失敗的錯誤訊息…哪知為何會轉不了…?||= =


尚無簽名,歡迎 [新增個性化簽名]
獻花 x0 回到頂端 [3 樓] From:臺灣教育部 | Posted:2011-10-09 19:46 |

首頁  發表文章 發表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.025285 second(s),query:16 Gzip disabled
本站由 瀛睿律師事務所 擔任常年法律顧問 | 免責聲明 | 本網站已依台灣網站內容分級規定處理 | 連絡我們 | 訪客留言