hlmod.hu
https://hlmod.hu/

Paintball Pontrendszer "shop"
https://hlmod.hu/viewtopic.php?f=29&t=15608
Oldal: 1 / 1

Szerző:  hallywood [ 2014.04.29. 19:40 ]
Hozzászólás témája:  Paintball Pontrendszer "shop"

Helló!

Az lenne a kérésem hogy egy olyan pontrendszer plugint össze dobna e valaki hogy Pontért lehessen venni:

- 1000 Elindulási sebesség! / 2000 Pontért/
- +100 HP /400 Pontért/
- Végtelen lőszer Pl: nem fogy ki a tár nem tölt újra / 1000 Pontért

Idönként adjon pontot 10 perc eltöltött idő 10 pont 20 20pont 30 30 pont!

És persze a radar alatt hudba jelezze a pontodat!


Köszönöm előre is!

Szerző:  DeR0iD [ 2014.04.29. 20:02 ]
Hozzászólás témája:  Re: Paintball Pontrendszer "shop"

enyit csináltam 5perc alatt többit csináld meg te xd fáradt vok he
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, "kapta vmit he")
  18. }
  19. public plugin_init() {
  20. register_plugin(PLUGIN, VERSION, AUTHOR)
  21. register_event("DeathMsg","death","a")
  22. register_clcmd("say /bolt","bolthe")
  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("Bolt he","menu_handlerhe")
  39.  
  40. menu_additem(menu, "1000 Elindulási sebesség! 2000 pont he", "1", 0);
  41. menu_additem(menu, "+100 HP 400 pont he", "2", 0);
  42. menu_additem(menu, "Végtelen lőszer 1000 pont he", "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, "vetel vmit he")
  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, "vetel vmit he")
  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, "vetel vmit he")
  78. pont[id] -= 1000
  79. }
  80. }
  81. }
  82. menu_destroy(menu)
  83. return PLUGIN_HANDLED
  84. }

Szerző:  boldi99 [ 2014.05.01. 10:41 ]
Hozzászólás témája:  Re: Paintball Pontrendszer "shop"

csináld már meg légyszives normálisan mert engem is érdekelne:DD

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