下面是引用 上帝的右手^^ 于 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)
像这样 新增自己要的僵尸模组
就可以随机 僵尸
像僵尸王 就有点....