Zplague
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Zplague Entrar

Seu portal de Zombie Plague no Brasil


descriptionajuda eu aki JUNIN Emptyajuda eu aki JUNIN

more_horiz
Junin eu queria q vc me ajudasse aki olha quem tem esse comando é so adm,eu gostaria q alguem aki coloca pra VIP ter o comnando tbm e tbm adm por favor alguem me ajuda.Ai abaixo ta o sma.











Código:

/* AMXMOD script.
*
* (c) Copyright 2000-2002, RAV
* This file is provided as is (no warranties).
*
* say /glow or /glowhelp in game
*
* Required: ADMIN_LEVEL_A to use this command
*
* Changelog
*
* Version 1.1 - Initial Build
* Version 1.2 - Case sensitivity ignored
* Version 1.3 - Specific couleur added
* Version 1.4 - Make invisible
* Version 1.5 - amx_unglow command added
* Version 1.6 - say /glowcolor commands added (by Gargantuel)
*
* Command amx_glow < part of name of the player > < couleur > or < random >  or < invisible >
*/

#include <amxmodx>
#include < fun >
public admin_glow_say(id,level){
   if (!(get_user_flags(id)&level)){
      console_print(id,"[AMXX] You do not have access has this command.")
      return PLUGIN_HANDLED
   }
   if (read_argc() < 2){
         new sound_cvar = get_cvar_num("amx_glow_say")
         console_print(id,"[LTF] ^"amx_glow_say^" est a ^"%i^"",sound_cvar)
         return PLUGIN_HANDLED
   }

   new sound_s[2]
   read_argv(1,sound_s,2)
   new sound = str_to_num(sound_s)

   if(sound == 1) {
      server_cmd("amx_glow_say 1")
      console_print(id,"[AMXX] Glow saying is now ACTIVE for ADMINS")
   }
   else if(sound == 2) {
      server_cmd("amx_glow_say 2")
      console_print(id,"[AMXX] Glow saying is now ACTIVE for ALL")
   }
   else if(sound == 0) {
      server_cmd("amx_glow_say 0")
      console_print(id,"[AMXX] Glow saying is now INACTIVE")
   }

   return PLUGIN_HANDLED
}

public say_glow(id, colorred, colorgreen, colorblue, colorname[32]) {
   new username[32]
   // Only if glowing enabled
   if(get_cvar_num("amx_glow_say") == 0) {
      client_print(id, print_chat, "*** Shining is not allowed ***")
      return PLUGIN_CONTINUE
   }
   // Only Admin can use glow
   if (!(get_user_flags(id)&ADMIN_LEVEL_A)&&(get_cvar_num("amx_glow_say") == 1)) {
      client_print(id, print_chat, "*** Shining is only allowed to admins ***")
      return PLUGIN_CONTINUE
   }

   // do action
   get_user_name(id,username,31)
   if (equal(colorname,"OFF"))
   {
      set_user_rendering(id)
      client_print(0,print_chat,"[AMX] The player ^"%s^" do not shine any more.",username)
      set_hudmessage(id, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)
      show_hudmessage(id,"You are not shining anymore.")
   } else {
      if (equal(colorname,"HELP"))
      {
         client_print(id,print_chat,"[AMXX] For shining say one of the following commands : /glowwhite, /glowred, /glowgreen, /glowyellow,")
         client_print(id,print_chat,"  /glowblue, /glowmagenta, /glowpink, /glowrandom")
         client_print(id,print_chat,"[AMXX] For do not shining anymore say : /glowoff")
      } else {
         set_user_rendering(id, kRenderFxGlowShell, colorred, colorgreen, colorblue, kRenderNormal, 16)
         client_print(0,print_chat,"[AMXX] The player ^"%s^" is now in %s.",username, colorname)
         set_hudmessage(id, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)
         show_hudmessage(id, "You begin to shine in %s !", colorname)
      }
   }
   return PLUGIN_CONTINUE
}

public say_glow_off(id) {
   say_glow(id, 0, 0, 0, "OFF")
   return PLUGIN_CONTINUE
}

public say_glow_red(id) {
   say_glow(id, 255, 0, 0, "RED")
   return PLUGIN_CONTINUE
}

public say_glow_green(id) {
   say_glow(id, 0, 255, 0, "GREEN")
   return PLUGIN_CONTINUE
}

public say_glow_white(id) {
   say_glow(id, 255, 255, 255, "WHITE")
   return PLUGIN_CONTINUE
}

public say_glow_yellow(id) {
   say_glow(id, 255, 255, 0, "YELLOW")
   return PLUGIN_CONTINUE
}

public say_glow_blue(id) {
   say_glow(id, 0, 0, 255, "BLUE")
   return PLUGIN_CONTINUE
}

public say_glow_magenta(id) {
   say_glow(id, 255, 0, 255, "MAGENTA")
   return PLUGIN_CONTINUE
}

public say_glow_pink(id) {
   say_glow(id, 240, 128, 128, "PINK")
   return PLUGIN_CONTINUE
}

public say_glow_random(id) {
   new colorred = random_num(50,255)
   new colorgreen = random_num(50,255)
   new colorblue = random_num(50,255)
   say_glow(id, colorred, colorgreen, colorblue, "a RANDOM COLOR")
   return PLUGIN_CONTINUE
}

public say_glow_help(id) {
   say_glow(id, 0, 0, 0, "HELP")
   return PLUGIN_CONTINUE
}

public admin_glow(id)
{
   if (!(get_user_flags(id)&ADMIN_LEVEL_A)){
      client_print(id,print_console,"[AMXX] You do not have access has this command.")
      return PLUGIN_HANDLED
   }
   if (read_argc() <2) {
      client_print(id,print_console," ")
      client_print(id,print_console,"[AMXX] Use:  amx_glow < part of name of the player  > < colors >")
      client_print(id,print_console,"[AMXX] Colors:  < red > < white > < green > < yellow > < blue >")
      client_print(id,print_console,"[AMXX] Colors:  < magenta > < pink > < random > < invisible >")
      return PLUGIN_HANDLED
   }
   
   new username[32]
   new color[33]
   read_argv(1,username,32)
   read_argv(2,color,32)
   new toglow = find_player("bl",username)
   if (toglow)
   {
      if (is_user_alive(toglow)==0)    {
         client_print(id,print_console,"[AMXX] The player ^"%s^" already died .",username)
         return PLUGIN_HANDLED
      }
      if(equal(color,"red")){
         get_user_name(toglow, username , 32)
         set_user_rendering(toglow,kRenderFxGlowShell,255,0,0,kRenderNormal,16)
         return PLUGIN_HANDLED
      }
      if(equal(color,"white")){
         get_user_name(toglow, username , 32)
         set_user_rendering(toglow,kRenderFxGlowShell,255,255,255,kRenderNormal,16)
         return PLUGIN_HANDLED
      }
      if(equal(color,"green")){
         get_user_name(toglow, username , 32)
         set_user_rendering(toglow,kRenderFxGlowShell,0,255,0,kRenderNormal,16)
         return PLUGIN_HANDLED
      }
      if(equal(color,"yellow")){
         get_user_name(toglow, username , 32)
         set_user_rendering(toglow,kRenderFxGlowShell,255,255,0,kRenderNormal,16)
         return PLUGIN_HANDLED
      }
      if(equal(color,"blue")){
         get_user_name(toglow, username , 32)
         set_user_rendering(toglow,kRenderFxGlowShell,0,0,255,kRenderNormal,16)
         return PLUGIN_HANDLED
      }
      if(equal(color,"magenta")){
         get_user_name(toglow, username , 32)
         set_user_rendering(toglow,kRenderFxGlowShell,255,0,255,kRenderNormal,16)
         return PLUGIN_HANDLED
      }
      if(equal(color,"pink")){
         get_user_name(toglow, username , 32)
         set_user_rendering(toglow,kRenderFxGlowShell,240,128,128,kRenderNormal,16)
         return PLUGIN_HANDLED
      }
      if(equal(color,"invisible")){
         get_user_name(toglow, username , 32)
         set_user_rendering(toglow,kRenderFxNone,0,0,0,kRenderTransTexture,0)
         return PLUGIN_HANDLED
      }
      if(equal(color,"random")){
         get_user_name(toglow, username , 32)
         new colorred = random_num(50,255)
         new colorgreen = random_num(50,255)
         new colorblue = random_num(50,255)
         set_user_rendering(toglow,kRenderFxGlowShell,colorred,colorgreen,colorblue,kRenderNormal,16)
         return PLUGIN_HANDLED
      }
   } else {
      client_print(id,print_console,"[AMXX] The player does not have be find.")
      return PLUGIN_HANDLED
   }
   
   return PLUGIN_CONTINUE
}


public admin_unglow(id)
{
   if (!(get_user_flags(id)&ADMIN_LEVEL_A)){
      client_print(id,print_console,"[AMXX] You do not have access has this commande.")
      return PLUGIN_HANDLED
   }
   new username[32]
   new color[33]
   read_argv(1,username,32)
   read_argv(2,color,32)
   new tounglow = find_player("bl",username)
   if (tounglow)
   {
      if (is_user_alive(tounglow)==0)
      {
         client_print(id,print_console,"[AMXX] The player ^"%s^" already died.",username)
         return PLUGIN_HANDLED
      } else {
         get_user_name(tounglow, username , 32)
         set_user_rendering(tounglow)
         client_print(id,print_chat,"[AMXX] The player ^"%s^" do not shine any more.",username)
         set_hudmessage(id, 100, 200, 0.05, 0.65, 2, 0.02, 4.0, 0.01, 0.1, 2)
         show_hudmessage(tounglow,"Admin removed you the color with which you shone.")
         return PLUGIN_HANDLED
      }
   }
   return PLUGIN_CONTINUE
}


public plugin_init()
{
   register_plugin("Admin glow","1.6","XLTEAM")
   register_clcmd("say /glow", "say_glow_help" );
   register_clcmd("say /glowhelp", "say_glow_help" );
   register_clcmd("say /glowred", "say_glow_red" );
   register_clcmd("say /glowwhite", "say_glow_white" );
   register_clcmd("say /glowgreen", "say_glow_green" );
   register_clcmd("say /glowyellow", "say_glow_yellow" );
   register_clcmd("say /glowblue", "say_glow_blue" );
   register_clcmd("say /glowmagenta", "say_glow_magenta" );
   register_clcmd("say /glowpink", "say_glow_pink" );
   register_clcmd("say /glowrandom", "say_glow_random" );
   register_clcmd("say /glowoff", "say_glow_off" );
   register_concmd("amx_glowsay","admin_glow_say",ADMIN_CVAR,"< 0/1/2 > - 0=disable, 1=admins only, 2=all")
   register_concmd("amx_glow","admin_glow",ADMIN_LEVEL_A,"< part of name of the player > < color >")
   register_concmd("amx_glow","admin_glow",ADMIN_LEVEL_A,"Colors:  < red > < white > < green > < yellow > < blue> >") 
   register_concmd("amx_glow","admin_glow",ADMIN_LEVEL_A,"Colors:  < magenta > < pink > < random > < invisible > < off >") 
   register_concmd("amx_unglow","admin_unglow",ADMIN_LEVEL_A,"amx_unglow < part of name of the player >")
   register_cvar("RVS_adminglow", "1.5",FCVAR_SERVER)
   register_cvar("amx_glow_say", "1")
   return PLUGIN_CONTINUE
}

descriptionajuda eu aki JUNIN EmptyRe: ajuda eu aki JUNIN

more_horiz
sem a flag que são os vips
fica dificil u_u

qual é a flag de vip ?

descriptionajuda eu aki JUNIN EmptyRe: ajuda eu aki JUNIN

more_horiz
frags de vip do meu serve sao (abcde) mais eu te pesso por favor coloque a letra (e).

descriptionajuda eu aki JUNIN EmptyRe: ajuda eu aki JUNIN

more_horiz
privacy_tip Permissões neste sub-fórum
Não podes responder a tópicos
power_settings_newInicie sessão para responder