搜索
查看: 2637|回复: 3

求高手帮忙汉化一下这个插件!谢谢!

[复制链接]
发表于 2007-10-14 14:35:21 | 显示全部楼层 |阅读模式 来自 中国–广东–广州–番禺区
http://forums.alliedmods.net/showthread.php?t=56234
这个插件哪个高手能帮忙汉化一下..看图片好像跟别的僵尸插件不同,可否汉化一下?:dribble:
 楼主| 发表于 2007-10-15 09:57:27 | 显示全部楼层 来自 中国–广东–广州–番禺区

回复: 求高手帮忙汉化一下这个插件!谢谢!

暈,沒人會嗎?高手快來幫幫我啊!
回复

使用道具 举报

发表于 2007-10-21 04:21:50 | 显示全部楼层 来自 中国–广东–广州–白云区

回复: 求高手帮忙汉化一下这个插件!谢谢!

僵尸我诉1.4
作者:紫色nurple [这是我第一次插件,我希望u喜欢]
版本: 1.4
单元:
amxmodx
好玩
cstrike
发动机
fakemeta

它的内涵是什么做什么呢?
当你在游戏和你的最后一个人对你的团队,并已16000美元
或z_cost cvar类型/ zombieme变成僵尸。僵尸得快
有较高的惠普刀,只有较高的盔甲,如果他们死的人,这是一个
僵尸得到恢复正常。

cvars :
z_speed ( 420默认)的变化,僵尸的速度。
z_cost ( 16000默认)的变化僵尸成本。
z_health ( 1300默认值)的变化僵尸健康。
z_armor ( 200默认)的变化僵尸盔甲。
z_gravity ( 0.5默认) 1.0正常重力变化。
z_glow ( 1默认) 1 0关,使僵尸辉光。
z_buyable ( 1默认) 1 0关,如果人们能买它。
z_arena ( 0默认) 1 ct的是僵尸2吨的是僵尸。
z_adminonly z_adminonly ( 0默认) 1 0关,如果只有管理员可僵尸。


什么新意吗? :
z_adminonly ( 0默认) 1 0关,如果只有管理员可僵尸。
amx_zombie (球员的名字,电脑断层摄影, t的@全部) ,必须有admin_kick
新的僵尸的声音! (听起来是从孔少,所以下载的人加入! )

僵尸有:
甜刀模式。
新的痛苦的声音。
新的播放模式。
如果cvar定会去红对t和蓝色的ct 。


测试:
直拉(工程,但u必须有cstrike模块)
政务司司长(工务)

命令:
say zombieme或/ zombieme
team_say zombieme或/ zombieme
say zombiehelp [ zombiehelp ]
amx_zombiehelp [求助]

新的
amx_zombie (球员的名字,电脑断层摄影, t的@所有) ,需要admin_kick

已知的错误:
人们在服务器获得踢时z_arena是因为僵尸播放模式(下一个版本,这将固定)
请邮政任何缺陷美找到!
回复

使用道具 举报

发表于 2007-11-17 19:29:37 | 显示全部楼层 来自 中国–香港

回复: 求高手帮忙汉化一下这个插件!谢谢!

這是我汉化的,hikaru15=SHIN

用香港語言汉化的,請自己修改一下,汉化不是太好...
Version: 1.4
Modules:
amxmodx
fun
cstrike
engine
fakemeta
唔知有冇少左D Sound,少左告知我。

它做什麽?
你在你的game上的比赛和你的最後一个人中有$16000(z_cost 16000 default 更改)
或 打/zombieme 变成一个丧屍。 丧屍走得很快
、有较高的 hp(只能用刀仔)和较高的盔甲而且如果这个丧屍死了,它会变回正常人。
Cvars:
z_speed (420 default) 改变丧屍速度。
z_cost (16000 default) 改变丧屍金钱。
z_health (1300 default) 改变丧屍血量。
z_armor (200 default) 改变丧屍盔甲。
z_gravity (0.5 default) 1.0 正常改变地心引力。
z_glow (1 default) 1 on 0 关闭丧屍发红光。
z_buyable (1 default) 1 on 0关闭如果人能买它。
z_arena (0 default) 1 反恐精英是丧屍 2 恐布份子是丧屍。
z_adminonly z_adminonly (0 default) 1 开启 0 关闭管理员可以是丧屍。
更新 :
z_adminonly (0 default) 1 开启 0 关闭管理员可以是丧屍。
amx_zombie (Player name,CT,T,@ALL) 一定要有ADMIN_KICK权限
new zombie sounds! (sounds are from hl1 so less downloads for people joining!)
amx_zombie (Player name,CT,T,@ALL) 一定要有ADMIN_KICK权限

丧屍有:
Sweet knife model.
New pain sounds.
New player model.
If cvar is set will go red on t and blue on ct.
测试::
cz (works but u must have cstrike module)
cs (works)
指令:
say zombieme or /zombieme
team_say zombieme or /zombieme
say zombiehelp [for zombiehelp]

Known Bugs:
People in server get kick when z_arena is on because of zombie player models(next version this will be fixed)
please post any bugs that u find!
To do:
Infection!
Pictures:
click pictures to make bigger.


/* Plugin generated by AMXX-Studio */
/* 中文化 By SHIN */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <engine>
#include <fakemeta>

#define PLUGIN "Zombie Me"
#define VERSION "1.4"
#define AUTHOR "Purple Nurple"
////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////Plugin by Jesse Tripp (C) copy-write 2007//////////////////////////////////
//////////////////////////////email: jdmotor@sbcglobal.net//////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
// ADDED amx_zombie, z_adminonly //
////////////////////////////////////////////////////////////////////////////////////////////////////
#define ZOMBIE_PAIN 2
new pain_zombie[ZOMBIE_PAIN][] = {"zombie/zo_pain1.wav", "zombie/zo_pain2.wav" }
new bool:zombie[33]
new z_cost, z_health, z_armor, z_speed, z_gravity
#define MAX_PLAYERS 32
new bool:g_restart_attempt[MAX_PLAYERS + 1]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
////COMMANDS
register_clcmd("say zombieme", "buy_zombie", 0, "Transforms you into a zombie.")
register_clcmd("say /zombieme","buy_zombie",0, "Transforms you into a zombie.")
register_clcmd("say /zombie","buy_zombie",0, "Transforms you into a zombie.")
register_clcmd("say_team zombieme","buy_zombie",0, "Transforms you into a zombie.")
register_clcmd("say_team /zombieme","buy_zombie",0, "Transforms you into a zombie.")
register_clcmd("say_team /zombie","buy_zombie",0, "Transforms you into a zombie.")
register_clcmd("say zombiehelp","zombiehelp",0, "Shows zombie help")
register_clcmd("amx_zombiehelp","zombiehelp",0, "Shows zombie help")
register_clcmd("amx_zombie","admin_zombie", ADMIN_KICK,"amx_zombie (PLAYERNAME) turns player into a zombie even if z_adminonly is 1")
////////////
/////////EVENTS/////
register_event("WeapPickup", "event_weap_pickup", "be", "1!29") // removes players picked up weapon
register_event("Health", "zombiehealth", "b") // for zombies health
register_event("Damage","event_damage_pain","be","2!0","3=0") // use for zombie pain sounds
//register_event("ResetHUD","event_ResetHUD","b") // use the ResetHUD event to catch when the player spawns
register_event("DeathMsg","event_DeathMsg","a"); // use the DeathMsg event to take away the zombie
register_touch("weaponbox", "player", "PlayerPickup")
register_event("CurWeapon","event_CurWeapon","be"); // use the CurWeapon event to keep setting player's speed
register_event("ResetHUD", "event_hud_reset", "be")
register_clcmd("fullupdate", "clcmd_fullupdate")
register_event("TextMsg", "event_restart_attempt", "a", "2=#Game_will_restart_in")
/////////////////////
/////////CVARS/////////
z_cost = register_cvar("z_cost","16000") // cvar for cost
z_health = register_cvar("z_health","1300") // cvar for health
z_armor = register_cvar("z_armor","200") // cvar for armor
z_speed = register_cvar("z_speed","430.0") // cvar for speed
z_gravity = register_cvar("z_gravity","0.5") // cvar for gravity
register_cvar("z_buyable","1") // cvar for allowing you to buy zombieme
register_cvar("z_glow", "1") // cvar for turning glowing off or on 1 is on 0 is off
register_cvar("z_arena","0")
register_cvar("z_adminonly","0")
///////////////////
///////////////STUFF////////////

/////////////////////////////////////
/////////////////////Server commands////////
server_cmd("sv_maxspeed 99999") //needed for zombies speed
server_cmd("mp_freezetime 0") //needed for zombies speed
server_cmd("amx_restrict on shield") // zombies can buy shields so it needs to be restricted
/////////////////////
}
public plugin_precache() {
precache_model("models/v_claws.mdl") // zombie knife model
precache_model("models/player/zombieme/zombieme.mdl") // zombie model
precache_sound("scientist/c1a0_sci_catscream.wav") // scream

new i
for (i = 0; i < ZOMBIE_PAIN; i++)
precache_sound(pain_zombie) // zombie pain sounds

}
public client_connect(id) {
zombie[id] = false // reset the bool variable back to false on connect
set_task(20.0, "client_connected_msg", id)
}
public client_connected_msg(id) {
if(get_cvar_num("z_buyable") == 1) {
client_print(id,print_chat,"[AMXX] 这一个伺服器正在运行僵尸版本1.4 [%s] (c)", VERSION)
if(get_cvar_num("z_adminonly") == 0) // if adminonly is set to 1
{
client_print(id,print_chat,"[ZOMBIE] 打/zombieme变成一个僵尸 !")
}
}
}

public buy_zombie(id) {
if(get_cvar_num("z_adminonly") == 1) // if adminonly is set to 1
{
if (get_user_flags(id) & ADMIN_KICK) //only for admins with kick
{
zombie[id] = true;
////////////////////HUD RANDOM COLOR//////////////////////////////////////////////////
new num1 = random_num(150,255)
new num2 = random_num(150,255)
new num3 = random_num(150,255)
set_hudmessage(num1, num2, num3, 0.07, 0.49 , 0, 6.0, 12.0)
new Name[32]
get_user_name(id, Name, 31)
show_hudmessage(0, "[ZOMBIE] 管理员 %s 是僵尸,我的天!!!", Name)
client_print(id,print_chat,"[ZOMBIE] 你已经喝了僵尸药,你现在可以变成一个僵尸! ")
client_print(0,print_chat,"[ZOMBIE] 你一定要杀死僵尸让它恢复正常 !")
client_print(id,print_console,"[ZOMBIE] 你已经喝了僵尸药,你现在可以变成一个丧屍! ")
////////////////////////////////////////////////////////////////////////////////////////////
///////////////////ZOMBIE SCREAM////////////////////////////////////////////////////////////
emit_sound(id, CHAN_VOICE, "scientist/c1a0_sci_catscream.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
////////////////////////////////////////////////////////////////////////////////////////////
event_player_spawn(id)
return PLUGIN_HANDLED
}
else
{
client_print(id,print_chat,"僵尸只能由管理员设置。")
return PLUGIN_HANDLED
}
}
if (get_cvar_num("z_buyable") == 0) {
client_print(0,print_chat,"[ZOMBIE] 对不起, 僵尸已经被管理员关闭。")
return PLUGIN_HANDLED
}
if(!is_user_alive(id))
{
client_print(id,print_chat,"[ZOMBIE] 你一定要活着。")
return PLUGIN_HANDLED
}
if(zombie[id])
{
client_print(id, print_chat, "[AMXX] 你是已经是一个僵尸!")
return PLUGIN_HANDLED
}

if((cs_get_user_money(id) - get_pcvar_num(z_cost)) < 0) // check if the player has enough cash
{
client_print(id,print_chat,"[ZOMBIE] 对不起,你没有足够的金钱。你需要 $%d ", get_cvar_num("z_cost"))
client_print(id,print_console,"[ZOMBIE] 对不起,你没有足够的金钱变成一个僵尸 ")
return PLUGIN_HANDLED
}

zombie[id] = true;
////////////////////HUD RANDOM COLOR//////////////////////////////////////////////////
new num1 = random_num(150,255)
new num2 = random_num(150,255)
new num3 = random_num(150,255)
set_hudmessage(num1, num2, num3, 0.07, 0.49 , 0, 6.0, 12.0)
new Name[32]
get_user_name(id, Name, 31)
show_hudmessage(0, "[ZOMBIE] %s 是僵尸,我的天!!!", Name)
client_print(id,print_chat,"[ZOMBIE] You have drank the ZOMBIE formula you are now transformaing into one! ")
client_print(0,print_chat,"[ZOMBIE] 你一定要杀死僵尸让它恢复正常!")
client_print(id,print_console,"[ZOMBIE] You have drank the ZOMBIE formula you are now transformaing into one! ")
////////////////////////////////////////////////////////////////////////////////////////////
///////////////////ZOMBIE SCREAM////////////////////////////////////////////////////////////
emit_sound(id, CHAN_VOICE, "scientist/c1a0_sci_catscream.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
////////////////////////////////////////////////////////////////////////////////////////////
event_player_spawn(id)
cs_set_user_money(id,cs_get_user_money(id) - get_cvar_num("z_cost"))
return PLUGIN_CONTINUE
}
public clcmd_fullupdate() {
return PLUGIN_HANDLED_MAIN
}
public event_restart_attempt() {
new players[32], num
get_players(players, num, "a")
for (new i; i < num; ++i)
g_restart_attempt[players] = true
}
public event_hud_reset(id) {
if (g_restart_attempt[id]) {
g_restart_attempt[id] = false
return
}
set_task(0.3,"event_player_spawn",id)
if(get_cvar_num("z_arena") == 1 ) {
zombie_arena(id)
}
if(get_cvar_num("z_arena") == 2) {
zombie_arena(id)
}
}

public event_player_spawn(id) {

if(zombie[id]) // check if the player has zombie
{
set_task(0.1, "RemovePickedWeapon", id) //removes zombies guns
set_user_health(id, get_pcvar_num(z_health))
set_user_armor(id, get_pcvar_num(z_armor))
set_user_maxspeed(id, get_pcvar_float(z_speed))
set_user_gravity(id, get_pcvar_float(z_gravity)) // needs to be a float (0.5 is 400 gravity)
set_user_footsteps(id,1)
cs_set_user_model(id, "zombieme")
cs_set_user_nvg(id,1)

//new name[32]
//get_user_name(id, name, 31)
//client_print(id,print_chat,"[ZOMBIE] AHHH %s 是僵尸,我的天!!",name)
zombiehealth(id)
set_vision(id)
set_glow(id)
if(get_cvar_num("z_arena") == 0) {
emit_sound(id, CHAN_VOICE, "scientist/c1a0_sci_catscream.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
new name[32]
get_user_name(id, name, 31)
client_print(0,print_chat,"[ZOMBIE] AHHH %s 是僵尸,我的天!!",name)
}
return PLUGIN_CONTINUE
}
cs_reset_user_model(id)
set_user_footsteps(id,0)
set_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255)
return PLUGIN_CONTINUE
}

public event_weap_pickup(id) {
if(zombie[id]) {
set_task(0.1, "RemovePickedWeapon", id)
}
return PLUGIN_HANDLED
}
public RemovePickedWeapon(id) {
if(!is_user_alive(id) || !is_user_connected(id))
return PLUGIN_CONTINUE

if(zombie[id])
{
strip_user_weapons(id)
give_item(id,"weapon_knife")
set_user_maxspeed(id, get_pcvar_float(z_speed))
set_vision(id)
}

return PLUGIN_HANDLED
}
public PlayerPickup(entity, id) {
if (zombie[id]) return PLUGIN_HANDLED
return PLUGIN_CONTINUE;
}
public zombiehealth(id) {
if(!is_user_alive(id)) {
return PLUGIN_CONTINUE
}

if(zombie[id])
{
new id = read_data(0)
new health = read_data(1)
set_hudmessage(255, 255, 255, 0.11, 0.78, 2, 0.05, 1000.0, 0.01, 3.0, 1)
show_hudmessage(id, "Health: %d ", health)

}
return PLUGIN_CONTINUE
}
public event_DeathMsg(id) { // remove zombie after death
if(get_cvar_num("z_arena") == 1) {
return PLUGIN_CONTINUE
}
zombie[read_data(2)] = false
return PLUGIN_CONTINUE
}

public event_CurWeapon(id) { // set player's maxspeed continuously
if(is_user_alive(id) && zombie[id]) {
set_user_maxspeed(id, get_pcvar_float(z_speed))
set_vision(id)
}
}
public event_damage_pain(id) {
if (!is_user_alive(id) || !is_user_connected(id))
return PLUGIN_CONTINUE

if ( zombie[id] )
{
emit_sound(id, CHAN_VOICE, pain_zombie[random_num(0, ZOMBIE_PAIN - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)
}
return PLUGIN_CONTINUE
}
public set_vision(id) {

message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, id)
write_short(~0)
write_short(~0)
write_short(0)
write_byte(255)
write_byte(0)
write_byte(0)
write_byte(80)
message_end()
set_pev(id, pev_viewmodel, engfunc(EngFunc_AllocString, "models/v_claws.mdl"))
set_pev(id, pev_weaponmodel, engfunc(EngFunc_AllocString, ""))

}
public set_glow(id) {

if (get_cvar_num("z_glow") == 0) {
return PLUGIN_CONTINUE
}
new CsTeams:team = cs_get_user_team(id)
if(team == CS_TEAM_T) //terrist
{
set_rendering(id, kRenderFxGlowShell,50,0,0, kRenderTransAlpha, 255)
}

else if(team == CS_TEAM_CT) //counter-terrist
{
set_rendering(id, kRenderFxGlowShell, 0,0,50, kRenderTransAlpha, 255)
}

return PLUGIN_CONTINUE
}
public zombiehelp(id) {
client_print(id,print_chat,"")
client_print(id,print_chat,"")
client_print(id,print_chat,"")
client_print(id,print_chat,"")
client_print(id,print_chat,"[ZOMBIE] 您可以在控制台寻求帮助。")
client_print(id,print_console,"VERSION (c) %s", VERSION)
client_print(id,print_console,"")
client_print(id,print_console,"")
client_print(id,print_console,"")
client_print(id,print_console,"")
client_print(id,print_console,"")
client_print(id,print_console,"")
client_print(id,print_console,"")
client_print(id,print_console,"///////////////////////////////Zombie Me By Purple Nurple (Jesse) (C) 2007/////////")
client_print(id,print_console,"/////////////////Cvars///////////////////////////////////////")
client_print(id,print_console,"z_speed (420 default) changes zombies speed")
client_print(id,print_console,"z_cost (16000 default) changes zombies cost")
client_print(id,print_console,"z_health (1300 default) changes zombies health")
client_print(id,print_console,"z_armor (200 default) changes zombies armor")
client_print(id,print_console,"z_gravity (0.5 default) 1.0 normal changes gravity")
client_print(id,print_console,"z_glow (1 default) 1 on 0 off make zombies glow")
client_print(id,print_console,"z_buyable (1 default) 1 on 0 off if people can buy zombie")
client_print(id,print_console,"z_arena (0 default) 1 on 0 off turns cts to zombies and t stay normal")
client_print(id,print_console,"z_adminonly (0 default 1 on 0 off if only admins can be zombies")
client_print(id,print_console,"")
client_print(id,print_console,"////////////////////Commands////////////////////////////////////")
client_print(id,print_console,"")
client_print(id,print_console,"say /zombieme")
client_print(id,print_console,"say zombieme")
client_print(id,print_console,"team_say /zombieme")
client_print(id,print_console,"team_say zombieme")
client_print(id,print_console,"amx_zombiehelp")
client_print(id,print_console,"amx_zombie to turn someone into a zombie")
client_print(id,print_console,"/////////////////current cvars//////////////////////////////////")
client_print(id,print_console,"z_speed %d",get_cvar_num("z_speed"))
client_print(id,print_console,"z_cost %d",get_cvar_num("z_cost"))
client_print(id,print_console,"z_health %d",get_cvar_num("z_health"))
client_print(id,print_console,"z_armor %d",get_cvar_num("z_armor"))
client_print(id,print_console,"z_gravity %d",get_cvar_float("z_gravity"))
client_print(id,print_console,"z_glow %d",get_cvar_num("z_glow"))
client_print(id,print_console,"z_buyable %d",get_cvar_num("z_buyable"))
client_print(id,print_console,"z_arena %d",get_cvar_num("z_arena"))
client_print(id,print_console,"z_adminonly %d",get_cvar_num("z_adminonly"))
client_print(id,print_console,"////////////////////////////////////////////////////////////////")
client_print(id,print_console,"")
client_print(id,print_console,"YOU MUST KILL THE ZOMBIE HIM TO GO BACK TO NORMAL")
client_print(id,print_console,"")
client_print(id,print_console,"")
client_print(id,print_console,"///////////////////////////////////////////////////////////////////////////////////")
}

public zombie_arena(id)
if (get_cvar_num("z_arena") == 1) {
client_print(id,print_chat,"[ZOMBIE] 僵尸竞技 !ON! 反恐精英是僵尸")
new CsTeams:team = cs_get_user_team(id)
if(team == CS_TEAM_T) //terrist
{
zombie[id] = false
}
else if(team == CS_TEAM_CT) //counter-terrist
{
zombie[id] = true
event_player_spawn(id)
}
}else if (get_cvar_num("z_arena") == 2) {
client_print(id,print_chat,"[ZOMBIE] 僵尸竞技 !ON! 恐布份子是僵尸")
new CsTeams:team = cs_get_user_team(id)
if(team == CS_TEAM_T) //terrist
{
zombie[id] = true
event_player_spawn(id)
}
else if(team == CS_TEAM_CT) //counter-terrist
{
zombie[id] = false
}
}
public admin_zombie(id,level,cid)
{
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED

new arg[32]
new aName[32], aAuthid[36], pAuthid[36]
read_argv(1,arg,31)

get_user_name(id,aName,31)
get_user_authid(id,aAuthid,35)

if (arg[0]=='@'){
new plist[32], pnum
if (equali("T",arg[1])) copy(arg[1],31,"TERRORIST")
if (equali("ALL",arg[1])) get_players(plist,pnum)
else get_players(plist,pnum,"e",arg[1])

if (pnum == 0) {
console_print(id,"[zombie] NO PLAYERS FOUND")
return PLUGIN_HANDLED
}

for(new i=0; i<pnum; i++) {
if (!(get_user_flags(plist)&ADMIN_KICK))
{
new ids[3]
num_to_str(plist,ids,2)
zombie[plist] = true
event_player_spawn(plist)
client_print(plist,print_chat,"[ZOMBIE] 你已经被变成一个僵尸!")
}
}

}
else
{
new pName[32],player = cmd_target(id,arg,3)
if (!player) return PLUGIN_HANDLED
new ids[3]
num_to_str(player,ids,2)
zombie[player] = true
event_player_spawn(player)
client_print(player,print_chat,"[ZOMBIE] 你已经被变成一个僵尸!")
get_user_name(player,pName,31)
get_user_authid(player,pAuthid,35)


}

return PLUGIN_HANDLED
}
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表