搜索
查看: 1218|回复: 0

会汉化的达人 请帮忙汉化一下插件

[复制链接]
发表于 2008-9-11 13:17:23 | 显示全部楼层 |阅读模式 来自 中国–天津–天津
会汉化的高手请帮忙汉化一下插件  谢谢

//
// AMX Mod X 1.50 Script
//
// Developed by The AMX Mod X DoD Community
// http://www.dodplugins.net
//
// Author: [RST] FireStorm
//
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
//
//
// Requires AMX Mod X 1.50, DoDx, DoDFun, Engine & Fun modules!
//
//
//
// USAGE (admin commands):
// =======================
//
//
// amx_evilslay <player>       =  Slay target with explosion (*)
//
// amx_evilpimpslap <player>   =  PimpSlap target to death (*)
//
// amx_evilkick <player>       =  Boot player off DoD (*)
//
// amx_evilstfu <player>       =  Disables VoiceComm/Chat for the target (**)
//
// amx_evilslowdown <player>   =  Depleat targets stamina (**)
//
// amx_evilmirrordmg <player>  =  Enable MirrorDamage for Target (**)
//
// amx_evilmelee <player>      =  Only allow melee weapons for target (**)
//
// amx_evilglow <player>       =  Target glows in his team color (**)
//
// amx_evilbury <player>       =  Bury target into the ground (*)
//
// amx_evillowhealth <player>  =  Target has only 1hp (**)
//
// amx_evilvision <player>     =  Change targets view (**)
//
// amx_evilnoprone <player>    =  Disallow proning for target (**)
//
// NOTES:
// (*)  = one time action
// (**) = continuous action until disabled again
//        - using the corresponding command on the
//          specified target again will disable the punishment
//
//
//
//
// DESCRIPTION:
// ============
//
// This plugin is dedicated to ez?from the DoD Editing Center
// for showing me the dark side of server administration a
// long long time ago (in a galaxy far far away ;)
//
// If people piss you off, just show them who's the king on
// the server with one of the little mean features!
//
//
//
// CHANGELOG:
// ==========
//
// - 05.08.2005 Version 0.4beta
//   Initial Release
//
// - 09.08.2005 Version 0.5beta
//   added features:
//   - EvilVision: change target's view
//   - EvilNoProne: disallow player to go prone
//
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#include <dodx>
#include <dodfun>
new eviltargetburn
new dodevil_melee[33], dodevil_glow[33], dodevil_lowhealth[33], dodevil_stfu[33], dodevil_mirrordmg[33]
new dodevil_slowdown[33], dodevil_bury[33], dodevil_vision[33], dodevil_noprone[33]
public plugin_init(){
register_plugin("DoD EvilAdmin","0.5beta","AMXX DoD Team")
register_concmd("amx_evilslay","eviladmin_slay",ADMIN_BAN,"<player> = Slay target with explosion")
register_concmd("amx_evilslowdown","eviladmin_slowdown",ADMIN_BAN,"<player> = Depleat targets stamina")
register_concmd("amx_evilmelee","eviladmin_melee",ADMIN_BAN,"<player> = Only allow melee weapons for target")
register_concmd("amx_evilmirrordmg","eviladmin_mirrordmg",ADMIN_BAN,"<player> = Enable MirrorDamage for Target")
register_concmd("amx_evillowhealth","eviladmin_lowhealth",ADMIN_BAN,"<player> = Target has only 1hp")
register_concmd("amx_evilglow","eviladmin_glow",ADMIN_BAN,"<player> = Target glows in his team color")
register_concmd("amx_evilstfu","eviladmin_stfu",ADMIN_BAN,"<player> = Disables VoiceComm/Chat for the target")
register_concmd("amx_evilpimpslap","eviladmin_pimpslap",ADMIN_BAN,"<player> = Pimpslap target to death")
register_concmd("amx_evilbury","eviladmin_bury",ADMIN_BAN,"<player> = Bury target into the ground")
register_concmd("amx_evilkick","eviladmin_kick",ADMIN_BAN,"<player> = Boot player off DoD")
register_concmd("amx_evilvision","eviladmin_vision",ADMIN_BAN,"<player> = Change targets view")
register_concmd("amx_evilnoprone","eviladmin_noprone",ADMIN_BAN,"<player> = Disallow proning for target")
register_event("CurWeapon","check_evilmelee","b","1=1")
register_event("SetFOV","check_evilvision","b","1!160")
register_event("ResetHUD","evil_respawn","be")
register_clcmd("say","check_evilstfu")
register_clcmd("say_team","check_evilstfu")
return PLUGIN_CONTINUE
}
public plugin_precache(){
eviltargetburn = precache_model("sprites/explode1.spr")
}

public plugin_modules(){
require_module("fun")
require_module("engine")
require_module("dodx")
require_module("dodfun")
}
public client_command(id){
if(is_user_connected(id) == 0 || is_user_alive(id) == 0 || dodevil_noprone[id] == 0){
  return PLUGIN_CONTINUE
}
new pronecmd[16]
read_argv(0,pronecmd,15)
if(equali(pronecmd,"sprone")){
  client_print(id,print_chat,"[DoD EvilAdmin] You are not allowed to go prone!")
  return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public check_evilmelee(id){
if(dodevil_melee[id] == 1){
  new ammo, clip, currweap = dod_get_user_weapon(id,clip,ammo)
  if(currweap != DODW_AMERKNIFE && currweap != DODW_BRITKNIFE && currweap != DODW_SPADE && currweap != DODW_GERKNIFE){
   new eviltarget = id
   set_task(0.1,"evil_melee",eviltarget)
   return PLUGIN_CONTINUE
  }
  return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public client_authorized(id){
dodevil_melee[id] = 0
dodevil_glow[id] = 0
dodevil_lowhealth[id] = 0
dodevil_slowdown[id] = 0
dodevil_stfu[id] = 0
dodevil_mirrordmg[id] = 0
dodevil_bury[id] = 0
dodevil_vision[id] = 0
}
public client_damage(attacker,victim,damage,wpnindex,hitplace,TA){
if(dodevil_mirrordmg[attacker] == 1){
  new param[3]
  param[0] = victim
  param[1] = attacker
  param[2] = damage
  set_task(0.0,"evil_mirrordmg",0,param,3)
  return PLUGIN_CONTINUE
        }
        return PLUGIN_CONTINUE
}
public evil_mirrordmg(param[]){
if(is_user_alive(param[0]) == 1){
  set_user_health(param[0],get_user_health(param[0]) + param[2])
}
if(is_user_alive(param[1]) == 1){
  new oldhealth = get_user_health(param[1])
  if(oldhealth > (param[2] + 5)){
   set_user_health(param[1],get_user_health(param[1]) - (param[2] + 5))
  }
  else if(oldhealth <= (param[2] + 5)){
   user_kill(param[1])
  }
}
return PLUGIN_HANDLED
}
public evil_slowdown(eviltarget){
if(is_user_alive(eviltarget) == 1){
  dod_set_stamina(eviltarget,STAMINA_SET,0,0)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public evil_lowhealth(eviltarget){
if(is_user_alive(eviltarget) == 1){
  set_user_health(eviltarget,1)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public evil_glow(eviltarget){
if(is_user_alive(eviltarget) == 1){
  if(get_user_team(eviltarget) == AXIS){
   set_user_rendering(eviltarget,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
   return PLUGIN_HANDLED
  }
  else if(get_user_team(eviltarget) == ALLIES){
   set_user_rendering(eviltarget,kRenderFxGlowShell,0,255,0,kRenderNormal,25)
   return PLUGIN_HANDLED
  }
}
return PLUGIN_HANDLED
}
public evil_kick(eviltarget){
if(is_user_connected(eviltarget) == 1){
  client_cmd(eviltarget,"exit")
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public evil_melee(eviltarget){
if(is_user_alive(eviltarget) == 1){
  strip_user_weapons(eviltarget)
  if(get_user_team(eviltarget) == AXIS){
   if(dod_get_map_info(MI_AXIS_PARAS) == 1){
    give_item(eviltarget,"weapon_gerknife")
    return PLUGIN_HANDLED
   }
   else if(dod_get_map_info(MI_AXIS_PARAS) == 0){
    give_item(eviltarget,"weapon_spade")
    return PLUGIN_HANDLED
   }
  }
  else if(get_user_team(eviltarget) == ALLIES){
   if(dod_get_map_info(MI_ALLIES_TEAM) == 1){
    give_item(eviltarget,"weapon_gerknife")
    return PLUGIN_HANDLED
   }
   else if(dod_get_map_info(MI_ALLIES_TEAM) == 0){
    give_item(eviltarget,"weapon_amerknife")
    return PLUGIN_HANDLED
   }
  }
}
return PLUGIN_HANDLED
}
public check_evilstfu(id){
if(dodevil_stfu[id] == 0){
  return PLUGIN_CONTINUE
}
else if(dodevil_stfu[id] == 1){
  client_print(id,print_chat,"[DoD EvilAdmin] You can't use Chat or VoiceComm!")
  return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public evil_stfu(eviltarget){
if(get_speak(eviltarget) != SPEAK_MUTED){
  set_speak(eviltarget,SPEAK_MUTED)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public check_evilvision(id){
if(dodevil_vision[id] == 1){
  new eviltarget = id
  evil_vision(eviltarget)
  return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public evil_respawn(id){
new eviltarget = id
if(dodevil_melee[eviltarget] == 1){
  set_task(0.3,"evil_melee",eviltarget)
}
if(dodevil_glow[eviltarget] == 1){
  set_task(0.3,"evil_glow",eviltarget)
}
if(dodevil_lowhealth[eviltarget] == 1){
  set_task(0.3,"evil_lowhealth",eviltarget)
}
if(dodevil_slowdown[eviltarget] == 1){
  set_task(0.3,"evil_slowdown",eviltarget)
}
if(dodevil_stfu[eviltarget] == 1){
  set_task(0.3,"evil_stfu",eviltarget)
}
if(dodevil_bury[eviltarget] == 1){
  dodevil_bury[eviltarget] = 0
}
if(dodevil_vision[eviltarget] == 1){
  set_task(0.3,"evil_vision",eviltarget)
}
return PLUGIN_CONTINUE
}
public evil_vision(eviltarget){
if(is_user_alive(eviltarget) == 1){
  message_begin(MSG_ONE,get_user_msgid("SetFOV"),{0,0,0},eviltarget)
  write_byte(160)
  message_end()
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public evil_unvision(eviltarget){
if(is_user_alive(eviltarget) == 1){
  message_begin(MSG_ONE,get_user_msgid("SetFOV"),{0,0,0},eviltarget)
  write_byte(0)
  message_end()
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public evil_bury(eviltarget){
new eviltargetorigin[3]
get_user_origin(eviltarget,eviltargetorigin)
eviltargetorigin[2] -= 45
set_user_origin(eviltarget,eviltargetorigin)
return PLUGIN_HANDLED
}
public evil_unbury(eviltarget){
new eviltargetorigin[3]
get_user_origin(eviltarget,eviltargetorigin)
eviltargetorigin[2] += 45
set_user_origin(eviltarget,eviltargetorigin)
return PLUGIN_HANDLED
}
public evil_slay(eviltarget){
new eviltargetorigin[3]
get_user_origin(eviltarget,eviltargetorigin)
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,eviltargetorigin)
write_byte(3)
write_coord(eviltargetorigin[0])
write_coord(eviltargetorigin[1])
write_coord(eviltargetorigin[2])
write_short(eviltargetburn)
write_byte(60)
write_byte(10)
write_byte(0)
message_end()
user_kill(eviltarget)
return PLUGIN_HANDLED
}
public evil_pimpslap(eviltarget){
if(is_user_alive(eviltarget) == 1){
  user_slap(eviltarget,2)
  set_task(0.2,"evil_pimpslap",eviltarget)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public evil_noprone(eviltarget){
if(is_user_alive(eviltarget) == 1){
  if(dod_get_pronestate(eviltarget) == PS_PRONE){
   client_cmd(eviltarget,"prone")
  }
  else if(dod_get_pronestate(eviltarget) == PS_PRONEDEPLOY){
   dod_user_kill(eviltarget)
  }
}
set_task(0.5,"evil_setnoprone",eviltarget)
return PLUGIN_HANDLED
}
public evil_setnoprone(eviltarget){
dodevil_noprone[eviltarget] = 1
return PLUGIN_HANDLED
}
public eviladmin_noprone(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,11)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
if(dodevil_noprone[eviltarget] == 0){
  evil_noprone(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] Your cannot go prone anymore!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s disallowed proning for %s!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
else if(dodevil_noprone[eviltarget] == 1){
  dodevil_noprone[eviltarget] = 0
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You are allowed to prone again!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s allowed proning for %s again!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public eviladmin_vision(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,11)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
if(dodevil_vision[eviltarget] == 0){
  dodevil_vision[eviltarget] = 1
  evil_vision(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] Your view has been changed!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s has changed %s's view a little bit!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
else if(dodevil_vision[eviltarget] == 1){
  dodevil_vision[eviltarget] = 0
  evil_unvision(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] Your view has been normalized!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s normalized %s's view again!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public eviladmin_kick(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,11)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
evil_kick(eviltarget)
client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s kicked %s's ass off the server with a big boot!",adminname,eviltargetname)
return PLUGIN_HANDLED
}
public eviladmin_bury(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,7)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
if(dodevil_bury[eviltarget] == 0){
  dodevil_bury[eviltarget] = 1
  evil_bury(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You have been buried into the ground!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s has buried %s into the ground!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
else if(dodevil_bury[eviltarget] == 1){
  dodevil_bury[eviltarget] = 0
  evil_unbury(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You are not buried anymore!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s unbuied %s again!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public eviladmin_pimpslap(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,7)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
evil_pimpslap(eviltarget)
client_print(eviltarget,print_chat,"[DoD EvilAdmin] You are being pimp slapped!")
client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s pimp slaps %s to death!",adminname,eviltargetname)
return PLUGIN_HANDLED
}
public eviladmin_slay(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,7)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
evil_slay(eviltarget)
client_print(eviltarget,print_chat,"[DoD EvilAdmin] You have been slayed with a big explosion!")
client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s made %s burn in a fire explosion!",adminname,eviltargetname)
return PLUGIN_HANDLED
}
public eviladmin_lowhealth(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,3)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
if(dodevil_lowhealth[eviltarget] == 0){
  dodevil_lowhealth[eviltarget] = 1
  evil_lowhealth(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You are set to only have 1hp!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s reduced %s's spawnhealth to 1hp!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
else if(dodevil_lowhealth[eviltarget] == 1){
  dodevil_lowhealth[eviltarget] = 0
  evil_killrespawn(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] Your spawnhealth was reset to 100hp!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s reset %s's spawnhealth to 100hp again!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public eviladmin_glow(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,3)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
if(dodevil_glow[eviltarget] == 0){
  dodevil_glow[eviltarget] = 1
  evil_glow(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You are glowing in your team's color now!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s made %s glow in his team's color!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
else if(dodevil_glow[eviltarget] == 1){
  dodevil_glow[eviltarget] = 0
  set_user_rendering(eviltarget,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You are not glowing anymore!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s removed the glow from %s again!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public eviladmin_mirrordmg(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,3)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
if(dodevil_mirrordmg[eviltarget] == 0){
  dodevil_mirrordmg[eviltarget] = 1
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] MirroDamage has been enabled on you!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s enabled MirrorDamage on %s!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
else if(dodevil_mirrordmg[eviltarget] == 1){
  dodevil_mirrordmg[eviltarget] = 0
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] MirroDamage has been disabled on you again!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s disabled MirrorDamage on %s again!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public eviladmin_melee(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,3)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
if(dodevil_melee[eviltarget] == 0){
  dodevil_melee[eviltarget] = 1
  evil_melee(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You are only allowed to use your Knife/Spade now!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s forces %s to use melee weapons only!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
else if(dodevil_melee[eviltarget] == 1){
  dodevil_melee[eviltarget] = 0
  evil_killrespawn(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You can use all weapons again!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s allowed %s to use all weapons again!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public eviladmin_slowdown(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,3)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
if(dodevil_slowdown[eviltarget] == 0){
  dodevil_slowdown[eviltarget] = 1
  evil_slowdown(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You were slowed down! Your Stamina is depleated!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s slowed %s down and depleated his Stamina!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
else if(dodevil_slowdown[eviltarget] == 1){
  dodevil_slowdown[eviltarget] = 0
  dod_set_stamina(eviltarget,STAMINA_RESET)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] Your Stamina is reset to normal again!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s reset %s's Stamina back to normal!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public eviladmin_stfu(id,level,cid){
if(!cmd_access(id,level,cid,2)){
  return PLUGIN_HANDLED
}
new arg[32]
read_argv(1,arg,31)
new eviltarget = cmd_target(id,arg,11)
if(eviltarget == 0){
  return PLUGIN_HANDLED
}
new adminname[32]
new eviltargetname[32]
get_user_name(id,adminname,31)
get_user_name(eviltarget,eviltargetname,31)
if(dodevil_stfu[eviltarget] == 0){
  dodevil_stfu[eviltarget] = 1
  evil_stfu(eviltarget)
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You were made shut the fuck up! No Chat, no VoiceComm!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s made %s shut the fuck up!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
else if(dodevil_stfu[eviltarget] == 1){
  dodevil_stfu[eviltarget] = 0
  if(get_speak(eviltarget) != SPEAK_NORMAL){
   set_speak(eviltarget,SPEAK_NORMAL)
  }
  client_print(eviltarget,print_chat,"[DoD EvilAdmin] You are allowed to use Chat & VoiceComm again!")
  client_print(0,print_chat,"[DoD EvilAdmin] ADMIN %s allowed %s to use Chat & VoiceComm again!",adminname,eviltargetname)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public evil_killrespawn(eviltarget){
if(is_user_alive(eviltarget) == 1){
  dod_user_kill(eviltarget)
  return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

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