hlmod.hu
https://hlmod.hu/

c4 probléma
https://hlmod.hu/viewtopic.php?f=29&t=21554
Oldal: 1 / 1

Szerző:  krisztian2 [ 2015.07.17. 17:49 ]
Hozzászólás témája:  c4 probléma

Hellósztok van egy kis probléma, csináltam egy extra Cuccok menüt és bele tettem 40 kreditért
AWP csomagot
AK47 csomagot
M4A1 csomagot

igen ám, de kör kezdésnél is csináltam olyat hogy lehessen választani a fegyverek közül ingyen.
és ha ezt kiválasztja a T és nála van a c4, és ezt hogy lehet megoldani ne tünjön el a c4 mer raktam közé
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. strip_user_weapons(id)
  3.  

Szerző:  FloxaY [ 2015.07.17. 17:52 ]
Hozzászólás témája:  Re: c4 probléma

SMA Forráskód: [ Mindet kijelol ]
  1. if(user_has_weapon(id, CSW_C4))
  2. {
  3. strip_user_weapons(id);
  4. give_item(id, "weapon_c4")
  5. }
  6. else {
  7. strip_user_weapons(id);
  8. }

Szerző:  krisztian2 [ 2015.07.17. 18:10 ]
Hozzászólás témája:  Re: c4 probléma

Akkor kérdezzem le a csapatokat ?
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. case 1:{
  3. if(!is_user_alive(id))
  4. {
  5. ColorChat(id, RED, "^1[^4Infó^1]^4» ^3Te halott vagy! Nem tudod használni!")
  6. }
  7. else
  8. {
  9. if(kredit[id] >= 40)
  10. {
  11. strip_user_weapons(id)
  12. kredit[id]-=40
  13. give_item(id, "weapon_awp");
  14. give_item(id, "ammo_338magnum");
  15. give_item(id, "ammo_338magnum");
  16. give_item(id, "ammo_338magnum");
  17. give_item(id, "weapon_deagle");
  18. give_item(id,"ammo_50ae");
  19. give_item(id,"ammo_50ae");
  20. give_item(id,"ammo_50ae");
  21. give_item(id,"ammo_50ae");
  22. give_item(id,"ammo_50ae");
  23. kes[id] = 6
  24. give_item(id, "weapon_knife")
  25. ColorChat(id, RED, "^1[^4Infó^1]^3» ^4Sikeresen kiválasztottad az AWP packot! levonva ^3-40 ^4Kredit")
  26. }
  27. else
  28. ColorChat(id, RED, "^1[^4Infó^1]^3» ^4Nincs elég Kredited!")
  29. }
  30. }
  31.  

Szerző:  FloxaY [ 2015.07.17. 18:12 ]
Hozzászólás témája:  Re: c4 probléma

nem kell, elég csak azt lekérni, hogy van-e nála c4 :D

Szerző:  krisztian2 [ 2015.07.17. 18:19 ]
Hozzászólás témája:  Re: c4 probléma

Akkor így :) ?
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. case 1:{
  3. if(!is_user_alive(id))
  4. {
  5. ColorChat(id, RED, "^1[^4Infó^1]^4» ^3Te halott vagy! Nem tudod használni!")
  6. }
  7. else
  8. {
  9. if(user_has_weapon(id, CSW_C4))
  10. {
  11. strip_user_weapons(id);
  12. give_item(id, "weapon_c4")
  13. }
  14. else {
  15. strip_user_weapons(id);
  16. }
  17. if(kredit[id] >= 40)
  18. {
  19. strip_user_weapons(id)
  20. kredit[id]-=40
  21. give_item(id, "weapon_awp");
  22. give_item(id, "ammo_338magnum");
  23. give_item(id, "ammo_338magnum");
  24. give_item(id, "ammo_338magnum");
  25. give_item(id, "weapon_deagle");
  26. give_item(id,"ammo_50ae");
  27. give_item(id,"ammo_50ae");
  28. give_item(id,"ammo_50ae");
  29. give_item(id,"ammo_50ae");
  30. give_item(id,"ammo_50ae");
  31. kes[id] = 6
  32. give_item(id, "weapon_knife")
  33. ColorChat(id, RED, "^1[^4Infó^1]^3» ^4Sikeresen kiválasztottad az AWP packot! levonva ^3-40 ^4Kredit")
  34. }
  35. else
  36. ColorChat(id, RED, "^1[^4Infó^1]^3» ^4Nincs elég Kredited!")
  37. }
  38. }
  39.  

Szerző:  FloxaY [ 2015.07.17. 18:42 ]
Hozzászólás témája:  Re: c4 probléma

SMA Forráskód: [ Mindet kijelol ]
  1. case 1: {
  2. if(!is_user_alive(id))
  3. {
  4. ColorChat(id, RED, "^1[^4Infó^1]^4» ^3Te halott vagy! Nem tudod használni!")
  5. }
  6. else if(kredit[id] >= 40)
  7. {
  8. if(user_has_weapon(id, CSW_C4))
  9. {
  10. give_item(id, "weapon_c4")
  11. strip_user_weapons(id)
  12. kredit[id]-=40
  13. give_item(id, "weapon_awp");
  14. give_item(id, "ammo_338magnum");
  15. give_item(id, "ammo_338magnum");
  16. give_item(id, "ammo_338magnum");
  17. give_item(id, "weapon_deagle");
  18. give_item(id,"ammo_50ae");
  19. give_item(id,"ammo_50ae");
  20. give_item(id,"ammo_50ae");
  21. give_item(id,"ammo_50ae");
  22. give_item(id,"ammo_50ae");
  23. kes[id] = 6
  24. give_item(id, "weapon_knife")
  25. ColorChat(id, RED, "^1[^4Infó^1]^3» ^4Sikeresen kiválasztottad az AWP packot! levonva ^3-40 ^4Kredit")
  26. }
  27. else
  28. {
  29. strip_user_weapons(id)
  30. kredit[id]-=40
  31. give_item(id, "weapon_awp");
  32. give_item(id, "ammo_338magnum");
  33. give_item(id, "ammo_338magnum");
  34. give_item(id, "ammo_338magnum");
  35. give_item(id, "weapon_deagle");
  36. give_item(id,"ammo_50ae");
  37. give_item(id,"ammo_50ae");
  38. give_item(id,"ammo_50ae");
  39. give_item(id,"ammo_50ae");
  40. give_item(id,"ammo_50ae");
  41. kes[id] = 6
  42. give_item(id, "weapon_knife")
  43. ColorChat(id, RED, "^1[^4Infó^1]^3» ^4Sikeresen kiválasztottad az AWP packot! levonva ^3-40 ^4Kredit")
  44. }
  45.  
  46. }
  47. else {
  48. ColorChat(id, RED, "^1[^4Infó^1]^3» ^4Nincs elég Kredited!")
  49. }
  50. }
  51.  

Szerző:  krisztian2 [ 2015.07.17. 19:21 ]
Hozzászólás témája:  Re: c4 probléma

LoL T be nálam van a bomba rámegyek az Extra cuccokra AWP csomag és már nincs nálam a c4 :(

Szerző:  FloxaY [ 2015.07.17. 19:24 ]
Hozzászólás témája:  Re: c4 probléma

ÉN HÜLYE XD
SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5.  
  6. #define PLUGIN "Uj plugin"
  7. #define VERSION "1.0.0a"
  8. #define AUTHOR "FloxaY"
  9.  
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13.  
  14. // Add your code here...
  15. }
  16.  
  17. case 1: {
  18. if(!is_user_alive(id))
  19. {
  20. ColorChat(id, RED, "^1[^4Infó^1]^4» ^3Te halott vagy! Nem tudod használni!")
  21. }
  22. else if(kredit[id] >= 40)
  23. {
  24. if(user_has_weapon(id, CSW_C4))
  25. {
  26. strip_user_weapons(id)
  27. give_item(id, "weapon_c4")
  28. kredit[id]-=40
  29. give_item(id, "weapon_awp");
  30. give_item(id, "ammo_338magnum");
  31. give_item(id, "ammo_338magnum");
  32. give_item(id, "ammo_338magnum");
  33. give_item(id, "weapon_deagle");
  34. give_item(id,"ammo_50ae");
  35. give_item(id,"ammo_50ae");
  36. give_item(id,"ammo_50ae");
  37. give_item(id,"ammo_50ae");
  38. give_item(id,"ammo_50ae");
  39. kes[id] = 6
  40. give_item(id, "weapon_knife")
  41. ColorChat(id, RED, "^1[^4Infó^1]^3» ^4Sikeresen kiválasztottad az AWP packot! levonva ^3-40 ^4Kredit")
  42. }
  43. else
  44. {
  45. strip_user_weapons(id)
  46. kredit[id]-=40
  47. give_item(id, "weapon_awp");
  48. give_item(id, "ammo_338magnum");
  49. give_item(id, "ammo_338magnum");
  50. give_item(id, "ammo_338magnum");
  51. give_item(id, "weapon_deagle");
  52. give_item(id,"ammo_50ae");
  53. give_item(id,"ammo_50ae");
  54. give_item(id,"ammo_50ae");
  55. give_item(id,"ammo_50ae");
  56. give_item(id,"ammo_50ae");
  57. kes[id] = 6
  58. give_item(id, "weapon_knife")
  59. ColorChat(id, RED, "^1[^4Infó^1]^3» ^4Sikeresen kiválasztottad az AWP packot! levonva ^3-40 ^4Kredit")
  60. }
  61.  
  62. }
  63. else {
  64. ColorChat(id, RED, "^1[^4Infó^1]^3» ^4Nincs elég Kredited!")
  65. }
  66. }

Szerző:  krisztian2 [ 2015.07.17. 19:25 ]
Hozzászólás témája:  Re: c4 probléma

Gondoltam :D Probléma megoldve fel kellet cserélni a strip_user_weapont a give_item c4 el mer persze vegye el az összes fegyveremet és "UTÁNA" adja a c4 et

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