SHARE
TWEET

Untitled

a guest Feb 27th, 2020 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <csdm>
  4.  
  5. new Round,
  6.     bool:hsOnly[33];
  7.  
  8. static None[]="";
  9.  
  10. public aim_prac(id)
  11. {
  12.     if (id && !((get_user_flags(id) & ADMIN_CVAR)))
  13.     {
  14.         client_print(id, print_console, "[Indungi] Nu ai acces la aceasta comanda.")
  15.         return PLUGIN_CONTINUE
  16.     }
  17.     new arg[8]
  18.     read_argv(1, arg, 7)
  19.     if(equal(arg, None))
  20.     {
  21.         client_print(id, print_console, "amx_hsonly <on/off>");
  22.         return PLUGIN_HANDLED;
  23.     }
  24.     if((equali(arg, "on"))||(equali(arg, "1")))
  25.     {
  26.         set_user_hitzones(0 ,0, 2)
  27.         client_print(id, print_console, "[Indungi] Modul HS Only a fost activat.")
  28.         new name[32]
  29.         get_user_name(id,name,charsmax(name))
  30.         colorchat_CC( 0, "!E[Indungi]!N Modul!V HS Only!N a fost activat de catre!V %s!N.", name)
  31.         hsOnly[id] = true;
  32.     }
  33.     else
  34.     {
  35.         set_user_hitzones(0, 0, 255)
  36.         client_print(id, print_console, "[Indungi] Modul HS Only a fost dezactivat.")
  37.         new name[32]
  38.         get_user_name(id,name,charsmax(name))
  39.         colorchat_CC( 0, "!E[Indungi]!N Modul!V HS Only!N a fost dezactivat de catre!V %s!N.", name)
  40.         hsOnly[id] = false;
  41.     }
  42.     return PLUGIN_HANDLED
  43. }
  44.  
  45. public hsOnlyMsg(id)
  46. {
  47.     Round++;
  48.  
  49.     if(Round == 1)
  50.     {
  51.         if(hsOnly[id] == true)
  52.         {
  53.             set_hudmessage 0, 128, 0, 0.06, 0.13, 0, 6.0, 12.0;
  54.             show_hudmessage id, "HS ONLY: ON";
  55.         }
  56.         else if(hsOnly[id] == false)
  57.         {
  58.             set_hudmessage 200, 0, 0, 0.06, 0.13, 0, 6.0, 12.0;
  59.             show_hudmessage id, "HS ONLY: OFF";
  60.         }
  61.     }
  62. }
  63.  
  64. public plugin_init()
  65. {
  66.     register_plugin("Aim Practice","1.0","James Romeril")
  67.     register_concmd("amx_hsonly", "aim_prac", ADMIN_CVAR, "")
  68.     register_logevent("hsOnlyMsg", 1, "1=Round_Start");
  69. }
  70.  
  71. stock colorchat_CC(const id, const input[], any:...)
  72. {
  73.     new count = 1, Jucatori[32]
  74.     static msg[191]
  75.     vformat(msg, 190, input, 3)
  76.    
  77.     replace_all(msg, 190, "!V", "^4") // Culoarea Verde
  78.     replace_all(msg, 190, "!N", "^1") // Culoarea Normala a Chat-ului (galben)
  79.     replace_all(msg, 190, "!E", "^3") // Culoarea Echipei : CT = Albastru | T = Rosu.
  80.    
  81.     if (id) Jucatori[0] = id; else get_players(Jucatori, count, "ch")
  82.     {
  83.      for (new Y = 0; Y < count; Y++)
  84.         {
  85.         if (is_user_connected(Jucatori[Y]))
  86.                {
  87.             message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, Jucatori[Y])
  88.             write_byte(Jucatori[Y]);
  89.             write_string(msg);
  90.             message_end();
  91.             }
  92.         }
  93.     }
  94. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top