husano896
|
分享:
▲
▼
1.主插內尋找 forward_return(FMV_STRING, g_modname)把g_modname換成你要的即可(記得要加引號 「 ""」) 2. 在主插件尋找 native_register_extra_item2("antidote", g_extra_costs2[1], ZP_TEAM_ZOMBIE) native_register_extra_item2("madness", g_extra_costs2[2], ZP_TEAM_ZOMBIE) native_register_extra_item2("infbomb", g_extra_costs2[3], ZP_TEAM_ZOMBIE) case EXTRA_ANTIDOTE: len += formatex(menu[len], sizeof menu - 1 - len, "\d%d. %L", item-EXTRAS_STARTID+1, id, "MENU_EXTRA2") case EXTRA_MADNESS: len += formatex(menu[len], sizeof menu - 1 - len, "\d%d. %L", item-EXTRAS_STARTID+1, id, "MENU_EXTRA3") case EXTRA_INFBOMB: len += formatex(menu[len], sizeof menu - 1 - len, "\d%d. %L", item-EXTRAS_STARTID+1, id, "MENU_EXTRA4")刪掉後 在尋找 buy_extra_item(id, itemid) 把有關解毒藥 狂爆 殭屍芭樂的部分全部華麗(?的刪掉 複製程式
case EXTRA_ANTIDOTE: // Antidote
{
humanme(id, 0)
}
case EXTRA_MADNESS: // Zombie Madness
{
g_nodamage[id] = true
zombie_aura(id+TASK_BLOOD)
engfunc(EngFunc_EmitSound, id, CHAN_VOICE, zombie_madness[random_num(0, sizeof zombie_madness - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)
set_task(get_pcvar_float(cvar_madnessduration), "madness_over", id+TASK_BLOOD)
}
case EXTRA_INFBOMB: // Infection Bomb
{
// Increase infection bomb purchase count for this round
g_infbombcounter++
// Already own one
if (user_has_weapon(id, CSW_HEGRENADE))
{
// Increase BP ammo on it instead
fm_set_user_bpammo(id, CSW_HEGRENADE, fm_get_user_bpammo(id, CSW_HEGRENADE) + 1)
// Flash ammo in hud
message_begin(MSG_ONE_UNRELIABLE, g_msgAmmoPickup, _, id)
write_byte(AMMOID[CSW_HEGRENADE]) // ammo id
write_byte(1) // ammo amount
message_end()
// Play clip purchase sound
engfunc(EngFunc_EmitSound, id, CHAN_ITEM, sound_buyammo, 1.0, ATTN_NORM, 0, PITCH_NORM)
return; // stop here
}
// Give weapon to the player
fm_give_item(id, "weapon_hegrenade")
new name[32]
get_user_name(id, name, 31)
client_print(0,print_center,"小心! [%s] 購買了殭屍手榴彈", name)
}
|
|
x1
[5 樓]
From:臺灣中華電信股份有限公司 | Posted:2011-06-25 07:24 |
|
|
zxzyman
|
分享:
▲
下面是引用 husano896 於 2011-06-25 07:24 發表的 : 1.主插內尋找 forward_return(FMV_STRING, g_modname)把g_modname換成你要的即可(記得要加引號 「""」)
2. 在主插件尋找 native_register_extra_item2("antidote", g_extra_costs2[1], ZP_TEAM_ZOMBIE) native_register_extra_item2("madness", g_extra_costs2[2], ZP_TEAM_ZOMBIE) ....... 謝謝您 可以改遊戲類型了! 但殭屍道具 我可能是刪錯了 不能轉AMXX 是不是刪除這一些 複製程式
case EXTRA_ANTIDOTE: // Antidote {
humanme(id, 0)
}
case EXTRA_MADNESS: // Zombie Madness
{
g_nodamage[id] = true zombie_aura(id+TASK_BLOOD)
engfunc(EngFunc_EmitSound, id, CHAN_VOICE, zombie_madness[random_num(0, sizeof zombie_madness - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)
set_task(get_pcvar_float(cvar_madnessduration), "madness_over", id+TASK_BLOOD)
}
case EXTRA_INFBOMB: // Infection Bomb
{
// Increase infection bomb purchase count for this round
g_infbombcounter++
// Already own one
if (user_has_weapon(id, CSW_HEGRENADE))
{
// Increase BP ammo on it instead
fm_set_user_bpammo(id, CSW_HEGRENADE, fm_get_user_bpammo(id, CSW_HEGRENADE) + 1)
// Flash ammo in hud
message_begin(MSG_ONE_UNRELIABLE, g_msgAmmoPickup, _, id)
write_byte(AMMOID[CSW_HEGRENADE]) // ammo id
write_byte(1) // ammo amount
message_end()
// Play clip purchase sound
engfunc(EngFunc_EmitSound, id, CHAN_ITEM, sound_buyammo, 1.0, ATTN_NORM, 0, PITCH_NORM)
return; // stop here
}
// Give weapon to the player
fm_give_item(id, "weapon_hegrenade")
new name[32]
get_user_name(id, name, 31)
client_print(0,print_center,"小心! [%s] 購買了殭屍手榴彈", name)
} native_register_extra_item2("antidote", g_extra_costs2[1], ZP_TEAM_ZOMBIE) native_register_extra_item2("madness", g_extra_costs2[2], ZP_TEAM_ZOMBIE) 這也要刪除嗎...
[ 此文章被zxzyman在2011-06-26 14:40重新編輯 ]
|
UWC3NG 終極魔獸-次世代 (繁體中文版) -按此連結-
|
x0
[6 樓]
From:沒有資料 | Posted:2011-06-26 11:53 |
|
|
|