求高手帮忙汉化一下这个插件!谢谢!
http://forums.alliedmods.net/showthread.php?t=56234这个插件哪个高手能帮忙汉化一下..看图片好像跟别的僵尸插件不同,可否汉化一下?:dribble:
回复: 求高手帮忙汉化一下这个插件!谢谢!
暈,沒人會嗎?高手快來幫幫我啊!回复: 求高手帮忙汉化一下这个插件!谢谢!
僵尸我诉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是因为僵尸播放模式(下一个版本,这将固定)
请邮政任何缺陷美找到!
回复: 求高手帮忙汉化一下这个插件!谢谢!
這是我汉化的,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
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/zo_pain1.wav", "zombie/zo_pain2.wav" }
new bool:zombie
new z_cost, z_health, z_armor, z_speed, z_gravity
#define MAX_PLAYERS 32
new bool:g_restart_attempt
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 = 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," 这一个伺服器正在运行僵尸版本1.4 [%s] (c)", VERSION)
if(get_cvar_num("z_adminonly") == 0) // if adminonly is set to 1
{
client_print(id,print_chat," 打/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 = 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
get_user_name(id, Name, 31)
show_hudmessage(0, " 管理员 %s 是僵尸,我的天!!!", Name)
client_print(id,print_chat," 你已经喝了僵尸药,你现在可以变成一个僵尸! ")
client_print(0,print_chat," 你一定要杀死僵尸让它恢复正常 !")
client_print(id,print_console," 你已经喝了僵尸药,你现在可以变成一个丧屍! ")
////////////////////////////////////////////////////////////////////////////////////////////
///////////////////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," 对不起, 僵尸已经被管理员关闭。")
return PLUGIN_HANDLED
}
if(!is_user_alive(id))
{
client_print(id,print_chat," 你一定要活着。")
return PLUGIN_HANDLED
}
if(zombie)
{
client_print(id, print_chat, " 你是已经是一个僵尸!")
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," 对不起,你没有足够的金钱。你需要 $%d ", get_cvar_num("z_cost"))
client_print(id,print_console," 对不起,你没有足够的金钱变成一个僵尸 ")
return PLUGIN_HANDLED
}
zombie = 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
get_user_name(id, Name, 31)
show_hudmessage(0, " %s 是僵尸,我的天!!!", Name)
client_print(id,print_chat," You have drank the ZOMBIE formula you are now transformaing into one! ")
client_print(0,print_chat," 你一定要杀死僵尸让它恢复正常!")
client_print(id,print_console," 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, num
get_players(players, num, "a")
for (new i; i < num; ++i)
g_restart_attempt] = true
}
public event_hud_reset(id) {
if (g_restart_attempt) {
g_restart_attempt = 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) // 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
//get_user_name(id, name, 31)
//client_print(id,print_chat," 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
get_user_name(id, name, 31)
client_print(0,print_chat," 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) {
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)
{
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) return PLUGIN_HANDLED
return PLUGIN_CONTINUE;
}
public zombiehealth(id) {
if(!is_user_alive(id)) {
return PLUGIN_CONTINUE
}
if(zombie)
{
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 = false
return PLUGIN_CONTINUE
}
public event_CurWeapon(id) { // set player's maxspeed continuously
if(is_user_alive(id) && zombie) {
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 )
{
emit_sound(id, CHAN_VOICE, pain_zombie, 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," 您可以在控制台寻求帮助。")
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," 僵尸竞技 !ON! 反恐精英是僵尸")
new CsTeams:team = cs_get_user_team(id)
if(team == CS_TEAM_T) //terrist
{
zombie = false
}
else if(team == CS_TEAM_CT) //counter-terrist
{
zombie = true
event_player_spawn(id)
}
}else if (get_cvar_num("z_arena") == 2) {
client_print(id,print_chat," 僵尸竞技 !ON! 恐布份子是僵尸")
new CsTeams:team = cs_get_user_team(id)
if(team == CS_TEAM_T) //terrist
{
zombie = true
event_player_spawn(id)
}
else if(team == CS_TEAM_CT) //counter-terrist
{
zombie = false
}
}
public admin_zombie(id,level,cid)
{
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new arg
new aName, aAuthid, pAuthid
read_argv(1,arg,31)
get_user_name(id,aName,31)
get_user_authid(id,aAuthid,35)
if (arg=='@'){
new plist, pnum
if (equali("T",arg)) copy(arg,31,"TERRORIST")
if (equali("ALL",arg)) get_players(plist,pnum)
else get_players(plist,pnum,"e",arg)
if (pnum == 0) {
console_print(id," NO PLAYERS FOUND")
return PLUGIN_HANDLED
}
for(new i=0; i<pnum; i++) {
if (!(get_user_flags(plist)&ADMIN_KICK))
{
new ids
num_to_str(plist,ids,2)
zombie] = true
event_player_spawn(plist)
client_print(plist,print_chat," 你已经被变成一个僵尸!")
}
}
}
else
{
new pName,player = cmd_target(id,arg,3)
if (!player) return PLUGIN_HANDLED
new ids
num_to_str(player,ids,2)
zombie = true
event_player_spawn(player)
client_print(player,print_chat," 你已经被变成一个僵尸!")
get_user_name(player,pName,31)
get_user_authid(player,pAuthid,35)
}
return PLUGIN_HANDLED
}
页:
[1]