hlmod.hu
https://hlmod.hu/

Chat
https://hlmod.hu/viewtopic.php?f=9&t=7230
Oldal: 1 / 1

Szerző:  small [ 2013.01.21. 23:58 ]
Hozzászólás témája:  Chat

Hello...
Az a problémám h nem írja a chatbe a szöveget csak a ctnek a tnek írja..
SMA Forráskód: [ Mindet kijelol ]
  1. public menu_handler(id, menu, item)
  2. {
  3.  
  4. new data[6], szName[64];
  5. new access, callback;
  6. menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
  7.  
  8. new key = str_to_num(data);
  9.  
  10. switch(key)
  11. {
  12. case 1:
  13. {
  14. if (wp < 2)
  15. {
  16. if (user_has_weapon(id, CSW_C4))
  17. {
  18. strip_user_weapons(id)
  19. give_item(id, "weapon_knife")
  20. give_item(id, "weapon_awp")
  21. give_item(id, "weapon_deagle")
  22. give_item(id, "weapon_hegrenade")
  23. give_item(id, "weapon_flashbang")
  24. give_item(id, "weapon_smokegrenade")
  25. give_item(id, "item_assaultsuit")
  26. cs_set_user_bpammo(id, CSW_AWP, 30)
  27. cs_set_user_bpammo(id, CSW_DEAGLE, 35)
  28. cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
  29. give_item(id, "weapon_c4")
  30. cs_set_user_plant(id, 1, 1)
  31. wp++
  32. ColorChat(id,GREEN,"[HSO] Te kaptál egy AWP packot!")
  33. }
  34. else if(cs_get_user_team(id) == CS_TEAM_CT)
  35. {
  36. strip_user_weapons(id)
  37. give_item(id, "weapon_knife")
  38. give_item(id, "weapon_awp")
  39. give_item(id, "weapon_deagle")
  40. give_item(id, "weapon_hegrenade")
  41. give_item(id, "weapon_flashbang")
  42. give_item(id, "weapon_smokegrenade")
  43. give_item(id, "item_assaultsuit")
  44. cs_set_user_bpammo(id, CSW_AWP, 30)
  45. cs_set_user_bpammo(id, CSW_DEAGLE, 35)
  46. cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
  47. give_item(id, "item_thinghpack")
  48. wp++
  49. ColorChat(id,GREEN,"[HSO] Te kaptál egy AWP packot")
  50. }
  51. else
  52. {
  53. strip_user_weapons(id)
  54. give_item(id, "weapon_knife")
  55. give_item(id, "weapon_awp")
  56. give_item(id, "weapon_deagle")
  57. give_item(id, "weapon_hegrenade")
  58. give_item(id, "weapon_flashbang")
  59. give_item(id, "weapon_smokegrenade")
  60. give_item(id, "item_assaultsuit")
  61. cs_set_user_bpammo(id, CSW_AWP, 30)
  62. cs_set_user_bpammo(id, CSW_DEAGLE, 35)
  63. cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
  64. ColorChat(id,GREEN,"[HSO] Te kaptál egy AWP packot!")
  65.  
  66. }
  67. }
  68. else
  69. {
  70. client_print(id, print_chat, "*Az AWP-t mar 4-en valasztottak, nem valaszthatod!")
  71. }
  72. }

Szerző:  fear_ezmegmi [ 2013.01.22. 14:36 ]
Hozzászólás témája:  Re: Chat

SMA Forráskód: [ Mindet kijelol ]
  1. public menu_handler(id, menu, item)
  2. {
  3.  
  4. new data[6], szName[64];
  5. new access, callback;
  6. menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
  7.  
  8. new key = str_to_num(data);
  9.  
  10. switch(key)
  11. {
  12. case 1:
  13. {
  14. if (wp < 2)
  15. {
  16. if (user_has_weapon(id, CSW_C4))
  17. {
  18. strip_user_weapons(id)
  19. give_item(id, "weapon_knife")
  20. give_item(id, "weapon_awp")
  21. give_item(id, "weapon_deagle")
  22. give_item(id, "weapon_hegrenade")
  23. give_item(id, "weapon_flashbang")
  24. give_item(id, "weapon_smokegrenade")
  25. give_item(id, "item_assaultsuit")
  26. cs_set_user_bpammo(id, CSW_AWP, 30)
  27. cs_set_user_bpammo(id, CSW_DEAGLE, 35)
  28. cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
  29. give_item(id, "weapon_c4")
  30. cs_set_user_plant(id, 1, 1)
  31. wp++
  32. }
  33. else if(cs_get_user_team(id) == CS_TEAM_CT)
  34. {
  35. strip_user_weapons(id)
  36. give_item(id, "weapon_knife")
  37. give_item(id, "weapon_awp")
  38. give_item(id, "weapon_deagle")
  39. give_item(id, "weapon_hegrenade")
  40. give_item(id, "weapon_flashbang")
  41. give_item(id, "weapon_smokegrenade")
  42. give_item(id, "item_assaultsuit")
  43. cs_set_user_bpammo(id, CSW_AWP, 30)
  44. cs_set_user_bpammo(id, CSW_DEAGLE, 35)
  45. cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
  46. give_item(id, "item_thinghpack")
  47. wp++
  48. }
  49. else
  50. {
  51. strip_user_weapons(id)
  52. give_item(id, "weapon_knife")
  53. give_item(id, "weapon_awp")
  54. give_item(id, "weapon_deagle")
  55. give_item(id, "weapon_hegrenade")
  56. give_item(id, "weapon_flashbang")
  57. give_item(id, "weapon_smokegrenade")
  58. give_item(id, "item_assaultsuit")
  59. cs_set_user_bpammo(id, CSW_AWP, 30)
  60. cs_set_user_bpammo(id, CSW_DEAGLE, 35)
  61. cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
  62.  
  63. }
  64. ColorChat(id,GREEN,"[HSO] Te kaptál egy AWP packot!")
  65. }
  66. else
  67. {
  68. client_print(id, print_chat, "*Az AWP-t mar 4-en valasztottak, nem valaszthatod!")
  69. }
  70. }
  71. }
  72. }

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