hlmod.hu
https://hlmod.hu/

Modell menü!
https://hlmod.hu/viewtopic.php?f=9&t=16055
Oldal: 1 / 1

Szerző:  LaCruz [2014.05.28. 10:54 ]
Hozzászólás témája:  Modell menü!

Sziasztok! Kellene egy kis segítség, valaki meg tudná ugy csináli ezt az sma-t hogy amikor a menübe kiválasztom a modellt akkor Chatba irja hogy [Modell-Menu] Sikeresen Kiválasztottad a PartyNorth modell-t. (és ezt minden modellnél)
És ezt ugy hogy ilyennekkel lehesen szinezni (!g,!n!,!t)
Előre is köszönöm ha valaki meg csinálja!!! (megy a gomb)
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <colorchat>
  5.  
  6. #define PLUGIN "Model menu by PartyNorth"
  7. #define VERSION "1.0"
  8. #define AUTHOR "PartyNorth"
  9.  
  10. public plugin_init()
  11. {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. register_clcmd("say /modell", "admin")
  14. }
  15.  
  16. public plugin_precache()
  17. {
  18. precache_model("models/player/terror/terror.mdl")
  19. precache_model("models/player/gsg9/gsg9.mdl")
  20. precache_model("models/player/vip/vip.mdl")
  21. precache_model("models/player/admin1/admin1.mdl")
  22. precache_model("models/player/admin2/admin2.mdl")
  23. precache_model("models/player/admin3/admin3.mdl")
  24. precache_model("models/player/admin4/admin4.mdl")
  25. }
  26.  
  27. public admin(id)
  28. {
  29. if (get_user_flags(id) & ADMIN_KICK)
  30. {
  31. model_menu(id)
  32. }
  33. else
  34. {
  35. ColorChat(id, GREEN, "**Nem Hasznalhatod ezt a parancsot!**")
  36. }
  37.  
  38. }
  39. public model_menu(id)
  40. {
  41. new menu = menu_create("\yAdmin modell by \rPartyNorth", "menu_wybierz")
  42.  
  43. menu_additem(menu, "\rModel \yTT", "1", 0)
  44. menu_additem(menu, "\rModel \yCT", "2", 0)
  45. menu_additem(menu, "\rModel \yVip", "3", 0)
  46. menu_additem(menu, "\rModel \yCsontvaz", "4", 0)
  47. menu_additem(menu, "\rModel \yUj Vip", "5", 0)
  48. menu_additem(menu, "\rModel \yPredator", "6", 0)
  49. menu_additem(menu, "\rModel \yPartyNorth", "7", 0)
  50.  
  51.  
  52. menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
  53.  
  54. menu_display(id, menu, 0)
  55. }
  56.  
  57. public menu_wybierz(id, menu, item)
  58. {
  59. if (item == MENU_EXIT)
  60. {
  61. menu_destroy(menu)
  62. return PLUGIN_HANDLED
  63. }
  64. new data[6], iName[64]
  65. new acces, callback
  66. menu_item_getinfo(menu, item, acces, data,5, iName, 63, callback)
  67.  
  68. new key = str_to_num(data)
  69.  
  70. switch(key)
  71. {
  72. case 1 : cs_set_user_model(id, "terror")
  73. case 2 : cs_set_user_model(id, "gsg9")
  74. case 3 : cs_set_user_model(id, "vip")
  75. case 4 : cs_set_user_model(id, "admin1")
  76. case 5 : cs_set_user_model(id, "admin2")
  77. case 6 : cs_set_user_model(id, "admin3")
  78. case 7 : cs_set_user_model(id, "admin4")
  79. }
  80. menu_destroy(menu)
  81. return PLUGIN_HANDLED
  82. }
  83.  
  84. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  85. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  86. */

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