hlmod.hu
https://hlmod.hu/

TÖRÖLHETŐ!
https://hlmod.hu/viewtopic.php?f=29&t=22109
Oldal: 1 / 1

Szerző:  ZiT3K [2015.09.01. 16:57 ]
Hozzászólás témája:  TÖRÖLHETŐ!

Hali!
A következő plugint szeretném, ha valaki átalakítaná úgy, hogy:

- a HUD szöveg színe CT=kék T=piros legyen
- be lehessen állítani a HUD szöveg méretét
- és ugye be lehessen állítani a szöveget is

SMA:

SMA Forráskód: [ Mindet kijelol ] /* Formatright © 2013, Jhob94  The "Win Messages Changer" is free plugin; You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.  This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.  You should have received a copy of the GNU General Public License along with "Win Messages Changer" Plugin Source; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.    ******************************************  *A scriptet Anonymous1337 magyarosĂ­totta!*  *******************************************/ #include <amxmodx> new msgcvar_methodnew Text_Msg, WinningTeamnew Trie: tc public plugin_init() { register_plugin("Win Messages Changer", "0.0.5", "Jhob94")  msgcvar_method = register_cvar("msg_method", "1") // 0 = Print_Center | 1 = HUD  tc = TrieCreate() TrieSetCell(tc, "%!MRAD_terwin" , register_cvar("msg_t_win" , "Nuklerális ->AL-KAIDA<- gyĹ‘zelem!")) TrieSetCell(tc, "%!MRAD_ctwin" , register_cvar("msg_ct_win" , "Az igazságszolgáltatás ->TEK<- nyert!")) TrieSetCell(tc, "%!MRAD_rounddraw" , register_cvar("msg_rounddraw" , "PATT helyzet!"))  register_message(get_user_msgid("SendAudio"), "Messages_Audio")  Text_Msg = get_user_msgid("TextMsg")} public Messages_Audio(Message_Index, Message_Dest, Index){ if(!Index) { new Audio[14], won_msg[120] get_msg_arg_string(2, Audio, charsmax(Audio))  if(TrieGetCell(tc, Audio, WinningTeam) && get_pcvar_string(WinningTeam, won_msg, charsmax(won_msg))) { if(get_msg_block(Text_Msg) == BLOCK_NOT) set_msg_block(Text_Msg, BLOCK_ONCE)  if(!get_pcvar_num(msgcvar_method)) client_print(0, print_center, "%s", won_msg)   else { set_hudmessage(0, 250, 0, -1.0, 0.3, 0, 6.0, 12.0, _, _, -1) show_hudmessage(0, "%s", won_msg) }  return PLUGIN_HANDLED } }  return PLUGIN_CONTINUE} 
Előre is köszönöm!

Szerző:  mforce [2015.09.01. 17:14 ]
Hozzászólás témája:  Re: win üzenet

A szöveg ott van benne,méretet meg nem fogsz tudni változtatni...

Szerző:  ZiT3K [2015.09.01. 18:07 ]
Hozzászólás témája:  Re: win üzenet

Akkor egy olyan plugint szeretnék, ami ezeket tudja, előre is köszönöm!

Szerző:  CrB [2015.09.01. 20:03 ]
Hozzászólás témája:  Re: win üzenet

Nem véletlenül nincs publikálva :D Megoldható de slowhack illetve tudomásom szerint kiki-n és rajtam kívül senkinek sem sikerül vagy meg sem próbálta. Viszont már meg nem mondom, hogy melyik fájlt kellett átírni és a forráskód sincs már meg. Keresgélj a cstrike/resources mappában valahol ott van ha jól emlékszem.

UI: Steames játékosoknak nem fog működni.

Szerző:  ZiT3K [2015.09.01. 20:42 ]
Hozzászólás témája:  Re: win üzenet

Egyik szerón: http://kepfeltoltes.hu/150901/winuzenet ... es.hu_.jpg

steames vagyok

Szerző:  mforce [2015.09.01. 21:07 ]
Hozzászólás témája:  Re: win üzenet

Lehet variálni. Sima hud,dhud, set-nél az effekt a pozició utáni számok,aztán időtartam.

Szerző:  ZiT3K [2015.09.01. 23:11 ]
Hozzászólás témája:  Re: win üzenet

crazyboy írta:
Nem véletlenül nincs publikálva :D Megoldható de slowhack illetve tudomásom szerint kiki-n és rajtam kívül senkinek sem sikerül vagy meg sem próbálta. Viszont már meg nem mondom, hogy melyik fájlt kellett átírni és a forráskód sincs már meg. Keresgélj a cstrike/resources mappában valahol ott van ha jól emlékszem.

UI: Steames játékosoknak nem fog működni.


Megtaláltam: :D

2. slowhack (cstrike/resource/ClientScheme.res) tartalmát modosítod. Ez a fájl tárolja a hud üzenetek "méretét"

ÁTÍRTAM dhudosra, tehát már csak annyi kérésem lenne, hogy valaki írja át úgy, hogy T győzelemkor piros legyen és CT győzelemkor KÉK

SMA:

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

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