hlmod.hu
https://hlmod.hu/

Sajat admin modell
https://hlmod.hu/viewtopic.php?f=9&t=15739
Oldal: 1 / 1

Szerző:  LaCruz [ 2014.05.07. 15:20 ]
Hozzászólás témája:  Sajat admin modell

Sziasztok, csináltam 2 fajta admin modelt (rá irtam a hátára hogy Admin) és az a gondom hogy a skin-t nem hozza be a szerveren alap cs player model lesz..

1.sma fileba át irtam a models/player/magyar_admin_ct/magyar_ct
2.Ugyan ez T be models/player/magyar_admin_te/magyar_te
mindent át irtam!!.

De még mindig nem töltötte be az admin modelt!!
Ha valaki tud segítsen légyszives!
Elöre is "köszönöm"

Szerző:  DeR0iD [ 2014.05.07. 16:34 ]
Hozzászólás témája:  Re: Sajat admin modell

le compilerezted?

Szerző:  Applee [ 2014.05.07. 16:35 ]
Hozzászólás témája:  Re: Sajat admin modell

Mutass SMA-t

Szerző:  DeR0iD [ 2014.05.07. 16:35 ]
Hozzászólás témája:  Re: Sajat admin modell

csak az sma-t irod át akkor nem történik semmi.
amxx studioban compilerezd le!

Szerző:  LaCruz [ 2014.05.07. 17:00 ]
Hozzászólás témája:  Re: Sajat admin modell

Minden meg volt a plugin müködik csak az a gond hogy a skin amit át irtam a hátán lévő szöveget azt nem tölti be..

EDIT:
SMA 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/magyar_admin_ct/magyar_ct.mdl")
  66. precache_model("models/player/magyar_admin_te/magyar_te.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, "magyar_te")
  76. }
  77. else if(userTeam == CS_TEAM_CT) {
  78. cs_set_user_model(id, "magyar_ct")
  79. }
  80. else {
  81. cs_reset_user_model(id)
  82. }
  83. }
  84.  
  85. return PLUGIN_CONTINUE
  86. }
  87.  

Szerző:  norbee.16 [ 2014.05.07. 17:15 ]
Hozzászólás témája:  Re: Sajat admin modell

Istenem, segíts... A mappa is a modell nevének egyezni-e kell.. Látom Deroid sokat értesz hozzá.

Így a helyes:
SMA Forráskód: [ Mindet kijelol ]
  1. /*##########################################################################
  2.  
  3. ##
  4.  
  5.  
  6. ## ___ _____ ___ ___ _ __ _ ___ ___ _____ _
  7.  
  8. ## / | | _ \ / |/ | | | | \ | | / |/ | | _ \ | |
  9.  
  10. ## / /| | | | | | / /| /| | | | | \| | / /| /| | | | | | | |
  11.  
  12. ## / / | | | | | | / / |__/ | | | | | |\ | / / |__/ | | | | | | | |
  13.  
  14. ## / / | | | |_| | / / | | | | | | \ | / / | | | |_| | | |___
  15.  
  16. ## /_/ |_| |_____/ /_/ |_| |_| |_| \_| /_/ |_| |_____/ |_____|
  17.  
  18. ##
  19.  
  20. ## |__ |__ o _|_ ___ __ __ o |__, ___
  21.  
  22. ## -- |__) (__| (__(__( | ) | |_, (__/_ | ) ) | | \ (__/_
  23.  
  24. ## |
  25.  
  26. ##
  27.  
  28. ## Originated as a simple idea back in 2004, it was forgotten due to
  29.  
  30. ## lack of my 'Small' coding skills. However I have progressed in recent
  31.  
  32. ## months and somehow crossed that old post with this concept in it. So
  33.  
  34. ## naturally I challenged myself to see if I could do it, and voila! I
  35.  
  36. ## could <!-- s:) --><img src=\"{SMILIES_PATH}/icon_e_smile.gif\" alt=\":)\" title=\"mosoly\" /><!-- s:) -->
  37.  
  38. ##
  39.  
  40. ## Once you join, you play a normal person for the first round, and for
  41.  
  42. ## all remaining rounds your CT or TE models are custom. They now read
  43.  
  44. ## "ADMIN" on front and back, and also have small "A" patches on the arms.
  45.  
  46. ## I designed these models myself, it's very easy, just bring the textures
  47.  
  48. ## into photoshop, tweak out, and replace.
  49.  
  50. ##
  51.  
  52. ## Enjoy!
  53.  
  54. ##
  55.  
  56. ##
  57.  
  58. ## CHANGELOG
  59.  
  60. ##------------------------------------------------------------------------
  61.  
  62. ## 2) v1.1.1 - Fixed missing event
  63.  
  64. ## 1) v1.1.0 - Fixed VIP and other model bugs
  65.  
  66. ##
  67.  
  68. ##
  69.  
  70. ## INSTALLATION
  71.  
  72. ##------------------------------------------------------------------------
  73.  
  74. ## 1) Unzip (which you may have done already)
  75.  
  76. ## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins'
  77.  
  78. ## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx'
  79.  
  80. ## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder
  81.  
  82. ## 5) -- Visit www.SteamTools.net and enjoy your new plugin!
  83.  
  84. ##
  85.  
  86. ##
  87.  
  88. ##
  89.  
  90. ## THE CVARs
  91.  
  92. ##------------------------------------------------------------------------
  93.  
  94. ##
  95.  
  96. ## No CVARs for this plugin <!-- s:) --><img src=\"{SMILIES_PATH}/icon_e_smile.gif\" alt=\":)\" title=\"mosoly\" /><!-- s:) -->
  97.  
  98. ##
  99.  
  100. ##
  101.  
  102. ##########################################################################*/
  103.  
  104.  
  105.  
  106.  
  107.  
  108. #include <amxmodx>
  109.  
  110. #include <amxmisc>
  111.  
  112. #include <cstrike>
  113.  
  114.  
  115.  
  116. public plugin_init() {
  117.  
  118. register_plugin("AMX Admin Model", "1.1.1", "whitemike")
  119.  
  120. register_event("ResetHUD", "resetModel", "b")
  121.  
  122. return PLUGIN_CONTINUE
  123.  
  124. }
  125.  
  126.  
  127.  
  128. public plugin_precache() {
  129.  
  130. precache_model("models/player/magyar_admin_ct/magyar_admin_ct.mdl")
  131.  
  132. precache_model("models/player/magyar_admin_te/magyar_admin_te.mdl")
  133.  
  134.  
  135.  
  136. return PLUGIN_CONTINUE
  137.  
  138. }
  139.  
  140.  
  141.  
  142. public resetModel(id, level, cid) {
  143.  
  144. if (get_user_flags(id) & ADMIN_KICK) {
  145.  
  146. new CsTeams:userTeam = cs_get_user_team(id)
  147.  
  148. if (userTeam == CS_TEAM_T) {
  149.  
  150. cs_set_user_model(id, "magyar_admin_te")
  151.  
  152. }
  153.  
  154. else if(userTeam == CS_TEAM_CT) {
  155.  
  156. cs_set_user_model(id, "magyar_admin_ct")
  157.  
  158. }
  159.  
  160. else {
  161.  
  162. cs_reset_user_model(id)
  163.  
  164. }
  165.  
  166. }
  167.  
  168.  
  169.  
  170. return PLUGIN_CONTINUE
  171.  
  172. }
  173.  
  174.  


A modell nevét írd át a mappa nevére.

Szerző:  LaCruz [ 2014.05.07. 17:28 ]
Hozzászólás témája:  Re: Sajat admin modell

Köszi!! ment a gomb! müködik

Szerző:  DeR0iD [ 2014.05.07. 18:34 ]
Hozzászólás témája:  Re: Sajat admin modell

nem láttam még az sma-t :)
amúgy tudom!

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