Resolved [ZE] Glow Menu for Vips

Unpaid Requests, Public Plugins
Post Reply
Mystic Viper
Member
Member
Romania
Posts: 87
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

[ZE] Glow Menu for Vips

#1

Post by Mystic Viper » 1 Month Ago

Hello ! I want a plugin converted to our mode called Glow Menu. When u type !glow with "!" vip can choose a glow colour for skins and be available only for humans.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1866
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 98 times
Age: 21
Contact:

#2

Post by Raheem » 1 Month Ago

Where the plugin to be converted?
You don't know? Learn and you will know.

Mystic Viper
Member
Member
Romania
Posts: 87
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

#3

Post by Mystic Viper » 1 Month Ago

  1. /* FireWalker877's Glow Menu
  2. *  This is a simple [AMXX] public glow plugin.
  3. *  beb0 says "glow", beb0 gets a menu!
  4. *  Colors are those of the rainbow and white (in that order)
  5. *  Send any requests or comments to cstrikememphis@yahoo.com
  6. *
  7. *  Commands:
  8. *  say "glow"
  9. *  amx_gmtoggle - Admin level H access Toggles Glow Menu On and Off
  10. *
  11. *  Cvars
  12. *  gm_toggle 1/0 - < if 1, Glow Menu is disabled. if 0 or undefined,
  13. *  all clients have access to the Glow Menu. Define in server.cfg or
  14. *  set in console by typing "amx_gmtoggle"
  15. */
  16.  
  17. #include <amxmodx>
  18. #include <fun>
  19.  
  20. public plugin_init()
  21. {
  22.    register_plugin("Glow Menu","v1.2","FireWalker877")
  23.    register_menucmd(register_menuid("Glow Menu"),1023,"GlowMenuChoice")
  24.    register_concmd("say glow", "checkityo", 0, "- say glow and select an option")
  25.    register_concmd("amx_gmtoggle", "toggle", ADMIN_LEVEL_H, "- Toggle access to Glow Menu On and Off")
  26.    register_cvar("gm_toggle","0",FCVAR_SERVER)
  27.    set_cvar_string("gm_toggle","0")
  28. }
  29.  
  30.  
  31. public toggle(id)
  32. {
  33.     if(get_cvar_num("gm_toggle")==1)
  34.     {
  35.         set_cvar_string("gm_toggle","0")
  36.         client_print(0,print_chat,"[AMXx] Glow Menu has been enabled by the admin!")
  37.         server_print("Glow menu has been enabled!")
  38.     }
  39.  
  40.     else
  41.     {
  42.         set_cvar_string("gm_toggle","1")
  43.         client_print(0,print_chat,"[AMXx] Glow Menu has been disabled by the admin!")
  44.         server_print("Glow menu has been disabled!")
  45.         set_user_rendering(0,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
  46.     }
  47.     return PLUGIN_HANDLED
  48. }
  49.  
  50. public checkityo(id)
  51. {
  52.     if(get_cvar_num("gm_toggle")==1)
  53.     {
  54.         client_print(id,print_chat,"[AMXx] Glow Menu is currently disabled!")
  55.     }
  56.    
  57.     else
  58.     {
  59.        GlowMenuMenu(id)
  60.     }
  61.     return PLUGIN_HANDLED
  62. }
  63.  
  64. public amx_glowmenu(id)
  65. {
  66.     GlowMenuMenu(id)
  67.     return PLUGIN_HANDLED
  68. }
  69.  
  70. public GlowMenuMenu(id)
  71. {
  72.     if (is_user_alive(id))
  73.     {
  74.         new menuBody[1024]
  75.         new key
  76.      
  77.         format(menuBody, 1023, "Glow Menu^n^n 1.  Red^n 2.  Orange^n 3.  Yellow^n 4.  Green^n 5.  Light Blue^n 6.  Blue^n 7.  Purple^n 8.  White^n^n 9.  Turn glow off^n^n 0.  Exit.")
  78.         key = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
  79.  
  80.         show_menu(id, key, menuBody)
  81.     }
  82. }
  83.  
  84. public GlowMenuChoice(id, key)
  85. {
  86.     new Client[21]
  87.     get_user_name(id,Client,20)    
  88.  
  89.     switch(key)
  90.     {
  91.         case 0:
  92.         {
  93.             set_hudmessage(255,0,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  94.             show_hudmessage(0, "[AMXx] %s is now glowing Red!",Client)
  95.             set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
  96.         }
  97.         case 1:
  98.         {
  99.             set_hudmessage(255,140,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  100.             show_hudmessage(0, "[AMXx] %s is now glowing Orange!",Client)
  101.             set_user_rendering(id,kRenderFxGlowShell,255,140,0,kRenderNormal,25)
  102.         }
  103.         case 2:
  104.         {
  105.             set_hudmessage(255,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  106.             show_hudmessage(0, "[AMXx] %s is now glowing Yellow!",Client)
  107.             set_user_rendering(id,kRenderFxGlowShell,255,255,0,kRenderNormal,25)
  108.         }
  109.         case 3:
  110.         {
  111.             set_hudmessage(0,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  112.             show_hudmessage(0, "[AMXx] %s is now glowing Green!",Client)
  113.             set_user_rendering(id,kRenderFxGlowShell,0,255,0,kRenderNormal,25)
  114.         }
  115.         case 4:
  116.         {
  117.             set_hudmessage(0,255,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  118.             show_hudmessage(0, "[AMXx] %s is now glowing Light Blue!",Client)
  119.             set_user_rendering(id,kRenderFxGlowShell,0,255,255,kRenderNormal,25)
  120.         }
  121.         case 5:
  122.         {
  123.             set_hudmessage(0,0,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  124.             show_hudmessage(0, "[AMXx] %s is now glowing Blue!",Client)
  125.             set_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25)
  126.         }
  127.         case 6:
  128.         {
  129.             set_hudmessage(255,0,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  130.             show_hudmessage(0, "[AMXx] %s is now glowing Purple!",Client)
  131.             set_user_rendering(id,kRenderFxGlowShell,255,0,255,kRenderNormal,25)
  132.         }
  133.         case 7:
  134.         {
  135.             set_hudmessage(192,192,192, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  136.             show_hudmessage(0, "[AMXx] %s is now glowing White!",Client)
  137.             set_user_rendering(id,kRenderFxGlowShell,192,192,192,kRenderNormal,25)
  138.         }
  139.         case 8:
  140.         {
  141.             set_hudmessage(0,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  142.             show_hudmessage(0, "[AMXx] %s is no longer glowing!",Client)
  143.             set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
  144.         }
  145.         case 9:
  146.         {
  147.             return PLUGIN_CONTINUE
  148.         }
  149.     }
  150.     return PLUGIN_HANDLED
  151. }

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1866
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 98 times
Age: 21
Contact:

#4

Post by Raheem » 1 Month Ago

  1. /* FireWalker877's Glow Menu
  2. *  This is a simple [AMXX] public glow plugin.
  3. *  beb0 says "glow", beb0 gets a menu!
  4. *  Colors are those of the rainbow and white (in that order)
  5. *  Send any requests or comments to cstrikememphis@yahoo.com
  6. *
  7. *  Commands:
  8. *  say "glow"
  9. *  amx_gmtoggle - Admin level H access Toggles Glow Menu On and Off
  10. *
  11. *  Cvars
  12. *  gm_toggle 1/0 - < if 1, Glow Menu is disabled. if 0 or undefined,
  13. *  all clients have access to the Glow Menu. Define in server.cfg or
  14. *  set in console by typing "amx_gmtoggle"
  15. */
  16.  
  17. #include <zombie_escape>
  18. #include <fun>
  19.  
  20. public plugin_init()
  21. {
  22.    register_plugin("Glow Menu","v1.2","FireWalker877")
  23.    register_menucmd(register_menuid("Glow Menu"),1023,"GlowMenuChoice")
  24.    register_concmd("say !glow", "checkityo", 0, "- say glow and select an option")
  25.    register_concmd("amx_gmtoggle", "toggle", ADMIN_LEVEL_H, "- Toggle access to Glow Menu On and Off")
  26.    register_cvar("gm_toggle","0",FCVAR_SERVER)
  27.    set_cvar_string("gm_toggle","0")
  28. }
  29.  
  30.  
  31. public toggle(id)
  32. {
  33.     if(get_cvar_num("gm_toggle")==1)
  34.     {
  35.         set_cvar_string("gm_toggle","0")
  36.         client_print(0,print_chat,"[AMXx] Glow Menu has been enabled by the admin!")
  37.         server_print("Glow menu has been enabled!")
  38.     }
  39.  
  40.     else
  41.     {
  42.         set_cvar_string("gm_toggle","1")
  43.         client_print(0,print_chat,"[AMXx] Glow Menu has been disabled by the admin!")
  44.         server_print("Glow menu has been disabled!")
  45.         set_user_rendering(0,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
  46.     }
  47.     return PLUGIN_HANDLED
  48. }
  49.  
  50. public checkityo(id)
  51. {
  52.     if(get_cvar_num("gm_toggle")==1)
  53.     {
  54.         client_print(id,print_chat,"[AMXx] Glow Menu is currently disabled!")
  55.     }
  56.    
  57.     else
  58.     {
  59.        GlowMenuMenu(id)
  60.     }
  61.     return PLUGIN_HANDLED
  62. }
  63.  
  64. public amx_glowmenu(id)
  65. {
  66.     GlowMenuMenu(id)
  67.     return PLUGIN_HANDLED
  68. }
  69.  
  70. public GlowMenuMenu(id)
  71. {
  72.     if (is_user_alive(id) && !ze_is_user_zombie(id))
  73.     {
  74.         new menuBody[1024]
  75.         new key
  76.      
  77.         format(menuBody, 1023, "Glow Menu^n^n 1.  Red^n 2.  Orange^n 3.  Yellow^n 4.  Green^n 5.  Light Blue^n 6.  Blue^n 7.  Purple^n 8.  White^n^n 9.  Turn glow off^n^n 0.  Exit.")
  78.         key = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
  79.  
  80.         show_menu(id, key, menuBody)
  81.     }
  82. }
  83.  
  84. public GlowMenuChoice(id, key)
  85. {
  86.     new Client[21]
  87.     get_user_name(id,Client,20)    
  88.  
  89.     switch(key)
  90.     {
  91.         case 0:
  92.         {
  93.             set_hudmessage(255,0,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  94.             show_hudmessage(0, "[AMXx] %s is now glowing Red!",Client)
  95.             set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
  96.         }
  97.         case 1:
  98.         {
  99.             set_hudmessage(255,140,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  100.             show_hudmessage(0, "[AMXx] %s is now glowing Orange!",Client)
  101.             set_user_rendering(id,kRenderFxGlowShell,255,140,0,kRenderNormal,25)
  102.         }
  103.         case 2:
  104.         {
  105.             set_hudmessage(255,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  106.             show_hudmessage(0, "[AMXx] %s is now glowing Yellow!",Client)
  107.             set_user_rendering(id,kRenderFxGlowShell,255,255,0,kRenderNormal,25)
  108.         }
  109.         case 3:
  110.         {
  111.             set_hudmessage(0,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  112.             show_hudmessage(0, "[AMXx] %s is now glowing Green!",Client)
  113.             set_user_rendering(id,kRenderFxGlowShell,0,255,0,kRenderNormal,25)
  114.         }
  115.         case 4:
  116.         {
  117.             set_hudmessage(0,255,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  118.             show_hudmessage(0, "[AMXx] %s is now glowing Light Blue!",Client)
  119.             set_user_rendering(id,kRenderFxGlowShell,0,255,255,kRenderNormal,25)
  120.         }
  121.         case 5:
  122.         {
  123.             set_hudmessage(0,0,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  124.             show_hudmessage(0, "[AMXx] %s is now glowing Blue!",Client)
  125.             set_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25)
  126.         }
  127.         case 6:
  128.         {
  129.             set_hudmessage(255,0,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  130.             show_hudmessage(0, "[AMXx] %s is now glowing Purple!",Client)
  131.             set_user_rendering(id,kRenderFxGlowShell,255,0,255,kRenderNormal,25)
  132.         }
  133.         case 7:
  134.         {
  135.             set_hudmessage(192,192,192, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  136.             show_hudmessage(0, "[AMXx] %s is now glowing White!",Client)
  137.             set_user_rendering(id,kRenderFxGlowShell,192,192,192,kRenderNormal,25)
  138.         }
  139.         case 8:
  140.         {
  141.             set_hudmessage(0,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  142.             show_hudmessage(0, "[AMXx] %s is no longer glowing!",Client)
  143.             set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
  144.         }
  145.         case 9:
  146.         {
  147.             return PLUGIN_CONTINUE
  148.         }
  149.     }
  150.     return PLUGIN_HANDLED
  151. }
You don't know? Learn and you will know.

Mystic Viper
Member
Member
Romania
Posts: 87
Joined: 9 Months Ago
Has thanked: 1 time
Been thanked: 3 times
Contact:

#5

Post by Mystic Viper » 1 Month Ago

One problem...all players have access to glow menu...make it to work only for admins and vips with ADMIN_LEVEL_H

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1866
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 98 times
Age: 21
Contact:

#6

Post by Raheem » 1 Month Ago

  1. /* FireWalker877's Glow Menu
  2. *  This is a simple [AMXX] public glow plugin.
  3. *  beb0 says "glow", beb0 gets a menu!
  4. *  Colors are those of the rainbow and white (in that order)
  5. *  Send any requests or comments to cstrikememphis@yahoo.com
  6. *
  7. *  Commands:
  8. *  say "glow"
  9. *  amx_gmtoggle - Admin level H access Toggles Glow Menu On and Off
  10. *
  11. *  Cvars
  12. *  gm_toggle 1/0 - < if 1, Glow Menu is disabled. if 0 or undefined,
  13. *  all clients have access to the Glow Menu. Define in server.cfg or
  14. *  set in console by typing "amx_gmtoggle"
  15. */
  16.  
  17. #include <zombie_escape>
  18. #include <fun>
  19.  
  20. public plugin_init()
  21. {
  22.    register_plugin("Glow Menu","v1.2","FireWalker877")
  23.    register_menucmd(register_menuid("Glow Menu"),1023,"GlowMenuChoice")
  24.    register_concmd("say !glow", "checkityo", 0, "- say glow and select an option")
  25.    register_concmd("amx_gmtoggle", "toggle", ADMIN_LEVEL_H, "- Toggle access to Glow Menu On and Off")
  26.    register_cvar("gm_toggle","0",FCVAR_SERVER)
  27.    set_cvar_string("gm_toggle","0")
  28. }
  29.  
  30.  
  31. public toggle(id)
  32. {
  33.     if(get_cvar_num("gm_toggle")==1)
  34.     {
  35.         set_cvar_string("gm_toggle","0")
  36.         client_print(0,print_chat,"[AMXx] Glow Menu has been enabled by the admin!")
  37.         server_print("Glow menu has been enabled!")
  38.     }
  39.  
  40.     else
  41.     {
  42.         set_cvar_string("gm_toggle","1")
  43.         client_print(0,print_chat,"[AMXx] Glow Menu has been disabled by the admin!")
  44.         server_print("Glow menu has been disabled!")
  45.         set_user_rendering(0,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
  46.     }
  47.     return PLUGIN_HANDLED
  48. }
  49.  
  50. public checkityo(id)
  51. {
  52.     if(get_cvar_num("gm_toggle")==1)
  53.     {
  54.         client_print(id,print_chat,"[AMXx] Glow Menu is currently disabled!")
  55.     }
  56.    
  57.     else
  58.     {
  59.        GlowMenuMenu(id)
  60.     }
  61.     return PLUGIN_HANDLED
  62. }
  63.  
  64. public amx_glowmenu(id)
  65. {
  66.     GlowMenuMenu(id)
  67.     return PLUGIN_HANDLED
  68. }
  69.  
  70. public GlowMenuMenu(id)
  71. {
  72.     if (!(get_user_flags(id) & ADMIN_LEVEL_H))
  73.         return PLUGIN_HANDLED
  74.    
  75.     if (is_user_alive(id) && !ze_is_user_zombie(id))
  76.     {
  77.         new menuBody[1024]
  78.         new key
  79.      
  80.         format(menuBody, 1023, "Glow Menu^n^n 1.  Red^n 2.  Orange^n 3.  Yellow^n 4.  Green^n 5.  Light Blue^n 6.  Blue^n 7.  Purple^n 8.  White^n^n 9.  Turn glow off^n^n 0.  Exit.")
  81.         key = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
  82.  
  83.         show_menu(id, key, menuBody)
  84.     }
  85. }
  86.  
  87. public GlowMenuChoice(id, key)
  88. {
  89.     new Client[21]
  90.     get_user_name(id,Client,20)    
  91.  
  92.     switch(key)
  93.     {
  94.         case 0:
  95.         {
  96.             set_hudmessage(255,0,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  97.             show_hudmessage(0, "[AMXx] %s is now glowing Red!",Client)
  98.             set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
  99.         }
  100.         case 1:
  101.         {
  102.             set_hudmessage(255,140,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  103.             show_hudmessage(0, "[AMXx] %s is now glowing Orange!",Client)
  104.             set_user_rendering(id,kRenderFxGlowShell,255,140,0,kRenderNormal,25)
  105.         }
  106.         case 2:
  107.         {
  108.             set_hudmessage(255,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  109.             show_hudmessage(0, "[AMXx] %s is now glowing Yellow!",Client)
  110.             set_user_rendering(id,kRenderFxGlowShell,255,255,0,kRenderNormal,25)
  111.         }
  112.         case 3:
  113.         {
  114.             set_hudmessage(0,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  115.             show_hudmessage(0, "[AMXx] %s is now glowing Green!",Client)
  116.             set_user_rendering(id,kRenderFxGlowShell,0,255,0,kRenderNormal,25)
  117.         }
  118.         case 4:
  119.         {
  120.             set_hudmessage(0,255,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  121.             show_hudmessage(0, "[AMXx] %s is now glowing Light Blue!",Client)
  122.             set_user_rendering(id,kRenderFxGlowShell,0,255,255,kRenderNormal,25)
  123.         }
  124.         case 5:
  125.         {
  126.             set_hudmessage(0,0,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  127.             show_hudmessage(0, "[AMXx] %s is now glowing Blue!",Client)
  128.             set_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25)
  129.         }
  130.         case 6:
  131.         {
  132.             set_hudmessage(255,0,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  133.             show_hudmessage(0, "[AMXx] %s is now glowing Purple!",Client)
  134.             set_user_rendering(id,kRenderFxGlowShell,255,0,255,kRenderNormal,25)
  135.         }
  136.         case 7:
  137.         {
  138.             set_hudmessage(192,192,192, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  139.             show_hudmessage(0, "[AMXx] %s is now glowing White!",Client)
  140.             set_user_rendering(id,kRenderFxGlowShell,192,192,192,kRenderNormal,25)
  141.         }
  142.         case 8:
  143.         {
  144.             set_hudmessage(0,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
  145.             show_hudmessage(0, "[AMXx] %s is no longer glowing!",Client)
  146.             set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
  147.         }
  148.         case 9:
  149.         {
  150.             return PLUGIN_CONTINUE
  151.         }
  152.     }
  153.     return PLUGIN_HANDLED
  154. }
You don't know? Learn and you will know.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest