下面是引用 上帝的右手^^ 於 2010-04-02 12:33 發表的 :
我也是想這樣(把其他普通的改達叔,莎拉,庫卡,殭屍王改雷比亞)
其他是 可以改
只要
///////////////////////////////////////////////////////////////////
// Models //
/////////////////////////////////////////////////////////////////
new const ZOMBIE_MODEL1[] = "po"
new const ZOMBIE_MODEL2[] = "laalaa"
new const ZOMBIE_MODEL3[] = "dipsy"
new const ZOMBIE_MODEL4[] = "tinkywinky"
new const ZOMBIE_MODEL5[] = "mars"
// Downloads //
/////////////////////////////////////////////////////////////////
public plugin_precache()
precache_model("models/player/po/po.mdl")
precache_model("models/player/laalaa/laalaa.mdl")
precache_model("models/player/dipsy/dipsy.mdl")
precache_model("models/player/tinkywinky/tinkywinky.mdl")
precache_model("models/player/mars/mars.mdl")
g_fire = precache_model("sprites/zh_fire.spr")
g_boss_sprite = precache_model("sprites/zh_beacon.spr")
//////////////////////////////////////////////////////////////////
// Set Zombie Model //
/////////////////////////////////////////////////////////////////
public ham_player_spawn(id)
{
if(!is_user_alive(id) || !cs_get_user_team(id))
return
g_zombie[id] = cs_get_user_team(id) == CS_TEAM_T ? true : false
remove_task(id + 100)
if(g_zombie[id])
{
switch (random_num(1, 5)) ← 1~5
{
case 1: copy(g_player_model[id], charsmax( g_player_model[] ), ZOMBIE_MODEL1)
case 2: copy(g_player_model[id], charsmax( g_player_model[] ), ZOMBIE_MODEL2)
case 3: copy(g_player_model[id], charsmax( g_player_model[] ), ZOMBIE_MODEL3)
case 4: copy(g_player_model[id], charsmax( g_player_model[] ), ZOMBIE_MODEL4)
case 5: copy(g_player_model[id], charsmax( g_player_model[] ), ZOMBIE_MODEL5)
像這樣 新增自己要的殭屍模組
就可以隨機 殭屍
像殭屍王 就有點....