hlmod.hu
https://hlmod.hu/

Gyözelem uzenet.
https://hlmod.hu/viewtopic.php?f=29&t=17919
Oldal: 1 / 1

Szerző:  Be$t.# [ 2014.11.02. 14:15 ]
Hozzászólás témája:  Gyözelem uzenet.

Helló..
Nekem egy olyan plugin kellene amikor egyik csapat győz pl:Terorr gyözelem! csak igy tovább
Nagy betukell.!

Szerző:  NuD[!]e [ 2014.11.02. 14:16 ]
Hozzászólás témája:  Re: Gyözelem uzenet.

SMA Forráskód: [ Mindet kijelol ]
  1. /* Formatright � 2013, Jhob94
  2.  
  3. The "Win Messages Changer" is free plugin;
  4. You can redistribute it and/or modify it under the terms of the
  5. GNU General Public License as published by the Free Software Foundation.
  6.  
  7. This plugin is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11.  
  12. You should have received a copy of the GNU General Public License
  13. along with "Win Messages Changer" Plugin Source; if not, write to the
  14. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA.
  16. */
  17.  
  18. #include <amxmodx>
  19.  
  20. new msgcvar_method
  21. new Text_Msg, WinningTeam
  22. new Trie: tc
  23.  
  24. public plugin_init() {
  25. register_plugin("Win Messages Changer", "0.0.5", "Jhob94")
  26.  
  27. msgcvar_method = register_cvar("msg_method", "0") // 0 = Print_Center | 1 = HUD
  28.  
  29. tc = TrieCreate()
  30. TrieSetCell(tc, "%!MRAD_terwin" , register_cvar("msg_t_win" , "A Terroristak nyertek ezt a kort"))
  31. TrieSetCell(tc, "%!MRAD_ctwin" , register_cvar("msg_ct_win" , "A Terror Elharitok nyertek ezt a kort"))
  32. TrieSetCell(tc, "%!MRAD_rounddraw" , register_cvar("msg_rounddraw" , "Ebben a korben nem nyert semelyik csapat"))
  33.  
  34. register_message(get_user_msgid("SendAudio"), "Messages_Audio")
  35.  
  36. Text_Msg = get_user_msgid("TextMsg")
  37. }
  38.  
  39. public Messages_Audio(Message_Index, Message_Dest, Index)
  40. {
  41. if(!Index)
  42. {
  43. new Audio[14], won_msg[120]
  44. get_msg_arg_string(2, Audio, charsmax(Audio))
  45.  
  46. if(TrieGetCell(tc, Audio, WinningTeam) && get_pcvar_string(WinningTeam, won_msg, charsmax(won_msg)))
  47. {
  48. if(get_msg_block(Text_Msg) == BLOCK_NOT)
  49. set_msg_block(Text_Msg, BLOCK_ONCE)
  50.  
  51. if(!get_pcvar_num(msgcvar_method))
  52. client_print(0, print_center, "%s", won_msg)
  53.  
  54. else
  55. {
  56. set_hudmessage(0, 250, 0, -1.0, 0.3, 0, 6.0, 12.0, _, _, -1)
  57. show_hudmessage(0, "%s", won_msg)
  58. }
  59.  
  60. return PLUGIN_HANDLED
  61. }
  62. }
  63.  
  64. return PLUGIN_CONTINUE
  65. }

Szerző:  Be$t.# [ 2014.11.02. 14:18 ]
Hozzászólás témája:  Re: Gyözelem uzenet.

köszi de nagyba kellet volna és hudba szinváltosra! :)

Szerző:  NuD[!]e [ 2014.11.02. 14:19 ]
Hozzászólás témája:  Re: Gyözelem uzenet.

SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. #include <amxmodx>
  3.  
  4. new msgcvar_method
  5. new Text_Msg, WinningTeam
  6. new Trie: tc
  7.  
  8. public plugin_init() {
  9. register_plugin("Win Messages Changer", "0.0.5", "Jhob94")
  10.  
  11. msgcvar_method = register_cvar("msg_method", "1") // 0 = Print_Center | 1 = HUD
  12.  
  13. tc = TrieCreate()
  14. TrieSetCell(tc, "%!MRAD_terwin" , register_cvar("msg_t_win" , "A Terroristak nyertek ezt a kort"))
  15. TrieSetCell(tc, "%!MRAD_ctwin" , register_cvar("msg_ct_win" , "A Terror Elharitok nyertek ezt a kort"))
  16. TrieSetCell(tc, "%!MRAD_rounddraw" , register_cvar("msg_rounddraw" , "Ebben a korben nem nyert semelyik csapat"))
  17.  
  18. register_message(get_user_msgid("SendAudio"), "Messages_Audio")
  19.  
  20. Text_Msg = get_user_msgid("TextMsg")
  21. }
  22.  
  23. public Messages_Audio(Message_Index, Message_Dest, Index)
  24. {
  25. if(!Index)
  26. {
  27. new Audio[14], won_msg[120]
  28. get_msg_arg_string(2, Audio, charsmax(Audio))
  29.  
  30. if(TrieGetCell(tc, Audio, WinningTeam) && get_pcvar_string(WinningTeam, won_msg, charsmax(won_msg)))
  31. {
  32. if(get_msg_block(Text_Msg) == BLOCK_NOT)
  33. set_msg_block(Text_Msg, BLOCK_ONCE)
  34.  
  35. if(!get_pcvar_num(msgcvar_method))
  36. client_print(0, print_center, "%s", won_msg)
  37.  
  38. else
  39. {
  40. set_hudmessage(random(256), random(256), random(256), -1.0, 0.3, 0, 6.0, 12.0, _, _, -1)
  41. show_hudmessage(0, "%s", won_msg)
  42. }
  43.  
  44. return PLUGIN_HANDLED
  45. }
  46. }
  47.  
  48. return PLUGIN_CONTINUE
  49. }

Szerző:  babapiskóta.~ [ 2014.11.02. 15:27 ]
Hozzászólás témája:  Re: Gyözelem uzenet.

nagybetűkkel.

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <dhudmessage>
  3.  
  4. new msgcvar_method
  5. new Text_Msg, WinningTeam
  6. new Trie: tc
  7.  
  8. public plugin_init() {
  9. register_plugin("Win Messages Changer", "0.0.5", "Jhob94")
  10.  
  11. msgcvar_method = register_cvar("msg_method", "1") // 0 = Print_Center | 1 = HUD
  12.  
  13. tc = TrieCreate()
  14. TrieSetCell(tc, "%!MRAD_terwin" , register_cvar("msg_t_win" , "A Terroristak nyertek ezt a kort"))
  15. TrieSetCell(tc, "%!MRAD_ctwin" , register_cvar("msg_ct_win" , "A Terror Elharitok nyertek ezt a kort"))
  16. TrieSetCell(tc, "%!MRAD_rounddraw" , register_cvar("msg_rounddraw" , "Ebben a korben nem nyert semelyik csapat"))
  17.  
  18. register_message(get_user_msgid("SendAudio"), "Messages_Audio")
  19.  
  20. Text_Msg = get_user_msgid("TextMsg")
  21. }
  22.  
  23. public Messages_Audio(Message_Index, Message_Dest, Index)
  24. {
  25. if(!Index)
  26. {
  27. new Audio[14], won_msg[120]
  28. get_msg_arg_string(2, Audio, charsmax(Audio))
  29.  
  30. if(TrieGetCell(tc, Audio, WinningTeam) && get_pcvar_string(WinningTeam, won_msg, charsmax(won_msg)))
  31. {
  32. if(get_msg_block(Text_Msg) == BLOCK_NOT)
  33. set_msg_block(Text_Msg, BLOCK_ONCE)
  34.  
  35. if(!get_pcvar_num(msgcvar_method))
  36. client_print(0, print_center, "%s", won_msg)
  37.  
  38. else
  39. {
  40. set_dhudmessage(random(256), random(256), random(256), -1.0, 0.3, 0, 6.0, 12.0, _, _, -1)
  41. show_dhudmessage(0, "%s", won_msg)
  42. }
  43.  
  44. return PLUGIN_HANDLED
  45. }
  46. }
  47.  
  48. return PLUGIN_CONTINUE
  49. }

Szerző:  NuD[!]e [ 2014.11.02. 16:12 ]
Hozzászólás témája:  Re: Gyözelem uzenet.

Nem erre gondolt!:)
Énis erre gondoltam
de arra gondolt hogy HUD-ba irja!..
Cvar: msg_method 1

Szerző:  Be$t.# [ 2014.11.02. 16:14 ]
Hozzászólás témája:  Re: Gyözelem uzenet.

NuD[!]e írta:
Nem erre gondolt!:)
Énis erre gondoltam
de arra gondolt hogy HUD-ba irja!..
Cvar: msg_method 1

Igen nudi nekem ez kellet :)

Szerző:  m0csy652 [ 2014.11.02. 16:30 ]
Hozzászólás témája:  Re: Gyözelem uzenet.

NuD[!]e írta:
Nem erre gondolt!:)
Énis erre gondoltam
de arra gondolt hogy HUD-ba irja!..
Cvar: msg_method 1

*DHUD ba

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