hlmod.hu
https://hlmod.hu/

PaintBall Szint rendszer
https://hlmod.hu/viewtopic.php?f=29&t=15625
Oldal: 1 / 1

Szerző:  boldi99 [ 2014.05.01. 10:48 ]
Hozzászólás témája:  PaintBall Szint rendszer

valaki nem tudna olyat csinálni paintball szeróra h egy szint rendszer és ha meg ölsz 25 embert akkor kapsz egy ujj kés skint és ki választhatod akkor azt a kést a /kés ben és meg ölsz 50 et ujjab kés és 100 ujjab kés és igy tovább.. bal felső sarokba jelezze HUD-ba! remélem érthetően irtam le:))

Szerző:  hallywood [ 2014.05.03. 21:24 ]
Hozzászólás témája:  Re: PaintBall Szint rendszer

Kedves boldi99
Itt van befejezve amit DeRoiD írt meg félig,és végül is nem érdekel hogy nálad is lesz alább örülök neki hogy érdekel téged és hogy nem hülyeséget találtam ki! ;)

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fun>
  4. #include <cstrike>
  5.  
  6. #define PLUGIN "New Plug-In"
  7. #define VERSION "1.0"
  8. #define AUTHOR "author"
  9.  
  10. new pont[33]
  11.  
  12. public client_putinserver(id){
  13. set_task(600.0, "Ajandek", id)
  14. }
  15. public ajandek(id){
  16. pont[id] += 10
  17. client_print(id, print_chat, "Kaptal plusz pontot")
  18. }
  19. public plugin_init() {
  20. register_plugin(PLUGIN, VERSION, AUTHOR)
  21. register_event("DeathMsg","death","a")
  22. register_clcmd("say /pbshop","pbshop")
  23. }
  24. public death(){
  25. new killer = read_data(1)
  26. new victim = read_data(2)
  27.  
  28. if(killer == victim)
  29. {
  30. return PLUGIN_HANDLED;
  31. }
  32.  
  33. pont[killer]++
  34. return PLUGIN_CONTINUE
  35. }
  36. public bolthe(id)
  37. {
  38. new menu = menu_create("Paintball Bolt by Hallywood & DeRoiD","menu_handlerhe")
  39.  
  40. menu_additem(menu, "1000 Indulási sebesség! 2000 pont", "1", 0);
  41. menu_additem(menu, "+100 HP! 400 pont", "2", 0);
  42. menu_additem(menu, "Vegtelen loszer! 1000 pont", "3", 0);
  43. menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
  44. menu_display(id, menu, 0);
  45. }
  46. public menu_handlerhe(id, menu, item)
  47. {
  48. if( item == MENU_EXIT )
  49. {
  50. menu_destroy(menu);
  51. return PLUGIN_HANDLED;
  52. }
  53. new data[9], szName[64];
  54. new access, callback;
  55. menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
  56. new key = str_to_num(data);
  57.  
  58. switch(key)
  59. {
  60. case 1:{
  61. if(pont[id]>=2000){
  62. set_user_maxspeed(id, 1000.0)
  63. client_print(id, print_chat, "Vettel indulasi sebesseged 1000!")
  64. pont[id] -= 2000
  65. }
  66. }
  67. case 2:{
  68. if(pont[id]>=400){
  69. set_user_health(id, get_user_health(id)+100)
  70. client_print(id, print_chat, "Vettel +100 eletet")
  71. pont[id] -= 400
  72. }
  73. }
  74. case 3:{
  75. if(pont[id]>=1000){
  76. cs_set_user_bpammo(id, CSW_MP5NAVY, 999)
  77. client_print(id, print_chat, "Vettel vegtelen loszert")
  78. pont[id] -= 1000
  79. }
  80. }
  81. }
  82. menu_destroy(menu)
  83. return PLUGIN_HANDLED
  84. }

Szerző:  boldi99 [ 2014.05.05. 12:43 ]
Hozzászólás témája:  Re: PaintBall Szint rendszer

köszönöm:)

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