hlmod.hu
https://hlmod.hu/

VIP modell
https://hlmod.hu/viewtopic.php?f=10&t=17409
Oldal: 1 / 1

Szerző:  spice [ 2014.09.26. 14:13 ]
Hozzászólás témája:  VIP modell

Valaki át írja ezt nekem úgy hogy csak VIP -Ek tudják használni?
SMX Forráskód: [ Mindet kijelol ]
  1. /*##########################################################################
  2. ##
  3. ## ___ _____ ___ ___ _ __ _ ___ ___ _____ _
  4. ## / | | _ \ / |/ | | | | \ | | / |/ | | _ \ | |
  5. ## / /| | | | | | / /| /| | | | | \| | / /| /| | | | | | | |
  6. ## / / | | | | | | / / |__/ | | | | | |\ | / / |__/ | | | | | | | |
  7. ## / / | | | |_| | / / | | | | | | \ | / / | | | |_| | | |___
  8. ## /_/ |_| |_____/ /_/ |_| |_| |_| \_| /_/ |_| |_____/ |_____|
  9. ##
  10. ## |__ |__ o _|_ ___ __ __ o |__, ___
  11. ## -- |__) (__| (__(__( | ) | |_, (__/_ | ) ) | | \ (__/_
  12. ## |
  13. ##
  14. ## Originated as a simple idea back in 2004, it was forgotten due to
  15. ## lack of my 'Small' coding skills. However I have progressed in recent
  16. ## months and somehow crossed that old post with this concept in it. So
  17. ## naturally I challenged myself to see if I could do it, and voila! I
  18. ## could <!-- s:) --><img src=\"{SMILIES_PATH}/icon_e_smile.gif\" alt=\":)\" title=\"mosoly\" /><!-- s:) -->
  19. ##
  20. ## Once you join, you play a normal person for the first round, and for
  21. ## all remaining rounds your CT or TE models are custom. They now read
  22. ## "ADMIN" on front and back, and also have small "A" patches on the arms.
  23. ## I designed these models myself, it's very easy, just bring the textures
  24. ## into photoshop, tweak out, and replace.
  25. ##
  26. ## Enjoy!
  27. ##
  28. ##
  29. ## CHANGELOG
  30. ##------------------------------------------------------------------------
  31. ## 2) v1.1.1 - Fixed missing event
  32. ## 1) v1.1.0 - Fixed VIP and other model bugs
  33. ##
  34. ##
  35. ## INSTALLATION
  36. ##------------------------------------------------------------------------
  37. ## 1) Unzip (which you may have done already)
  38. ## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins'
  39. ## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx'
  40. ## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder
  41. ## 5) -- Visit http://www.SteamTools.net and enjoy your new plugin!
  42. ##
  43. ##
  44. ##
  45. ## THE CVARs
  46. ##------------------------------------------------------------------------
  47. ##
  48. ## No CVARs for this plugin <!-- s:) --><img src=\"{SMILIES_PATH}/icon_e_smile.gif\" alt=\":)\" title=\"mosoly\" /><!-- s:) -->
  49. ##
  50. ##
  51. ##########################################################################*/
  52.  
  53.  
  54. #include <amxmodx>
  55. #include <amxmisc>
  56. #include <cstrike>
  57.  
  58. public plugin_init() {
  59. register_plugin("AMX Admin Model", "1.1.1", "whitemike")
  60. register_event("ResetHUD", "resetModel", "b")
  61. return PLUGIN_CONTINUE
  62. }
  63.  
  64. public plugin_precache() {
  65. precache_model("models/player/vip_modell/vip_modellct.mdl")
  66. precache_model("models/player/vip_modell/vip_modellte.mdl")
  67.  
  68. return PLUGIN_CONTINUE
  69. }
  70.  
  71. public resetModel(id, level, cid) {
  72. if (get_user_flags(id) & ADMIN_KICK) {
  73. new CsTeams:userTeam = cs_get_user_team(id)
  74. if (userTeam == CS_TEAM_T) {
  75. cs_set_user_model(id, vip_modellte")
  76. }
  77. else if(userTeam == CS_TEAM_CT) {
  78. cs_set_user_model(id, "vip_modellct")
  79. }
  80. else {
  81. cs_reset_user_model(id)
  82. }
  83. }
  84.  
  85. return PLUGIN_CONTINUE
  86. }
  87.  

Szerző:  Z77 [ 2014.09.26. 14:34 ]
Hozzászólás témája:  Re: Átírás!

A VIPeidnek nem tudom ilyen jogot szeretnél adni, de tessék:
"P" - jogot adj a VIPeknek, ezáltal csak modeljük lesz, semmi más. :)
"p - custom level D"

SMA Forráskód: [ Mindet kijelol ]
  1. ADMIN_LEVEL_D
-re tettem.

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4.  
  5. public plugin_init() {
  6. register_plugin("AMX Admin Model", "1.1.1", "whitemike")
  7. register_event("ResetHUD", "resetModel", "b")
  8. return PLUGIN_CONTINUE
  9. }
  10.  
  11. public plugin_precache() {
  12. precache_model("models/player/vip_modell/vip_modellct.mdl")
  13. precache_model("models/player/vip_modell/vip_modellte.mdl")
  14.  
  15. return PLUGIN_CONTINUE
  16. }
  17.  
  18. public resetModel(id, level, cid) {
  19. if (get_user_flags(id) & ADMIN_LEVEL_D) {
  20. new CsTeams:userTeam = cs_get_user_team(id)
  21. if (userTeam == CS_TEAM_T) {
  22. cs_set_user_model(id, vip_modellte")
  23. }
  24. else if(userTeam == CS_TEAM_CT) {
  25. cs_set_user_model(id, "vip_modellct")
  26. }
  27. else {
  28. cs_reset_user_model(id)
  29. }
  30. }
  31.  
  32. return PLUGIN_CONTINUE
  33. }

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/