hlmod.hu
https://hlmod.hu/

HUD GYÖZLEMI ÜZENET!!! SZINVÁLTOS SEBZÉS KIIRO!!
https://hlmod.hu/viewtopic.php?f=29&t=15946
Oldal: 1 / 1

Szerző:  D3M0*~ [ 2014.05.19. 19:44 ]
Hozzászólás témája:  HUD GYÖZLEMI ÜZENET!!! SZINVÁLTOS SEBZÉS KIIRO!!

Csáó.
Azt szeretném kérni van a sebzés kiiro plugin..
Azt megtudja valaki csinálni nekem h mindig változtassa a szinét(ha lehetséges)?


2.Kérés- GYÖZELMI ÜZENET HUD-Ban...
AKI MEGIRJA NEKEM A PLUGINOKAT MEGY A GOMB :) :3

Szerző:  Anonymous1337 [ 2014.05.19. 19:51 ]
Hozzászólás témája:  Re: HUD GYÖZLEMI ÜZENET!!! SZINVÁLTOS SEBZÉS KIIRO!!

Üdv!

2, kérés:

SMA Forráskód: [ Mindet kijelol ]
  1. #include < amxmodx >
  2.  
  3. public plugin_init( ) {
  4. register_plugin( "Gyozelmi uzenet HUD", "0.1", "Anonymous1337" );
  5.  
  6. register_message( get_user_msgid( "TextMsg" ), "MsgTextMsg" );
  7. }
  8.  
  9. public MsgTextMsg( ) {
  10. static szMsg[ 22 ]; get_msg_arg_string( 2, szMsg, sizeof szMsg );
  11.  
  12. if( equal( szMsg, "#Terrorists_Win" ) )
  13. client_print( 0, print_center, "A Terroristak nyertek!" );
  14. else if( equal( szMsg, "#CTs_Win" ) ) {
  15. client_print( 0, print_center, "A CTk nyertek" );
  16. }


vagy:

D3M0*~ @ Gyözelmi üzenet HUD-ban !

Szerző:  norbee.16 [ 2014.05.19. 21:52 ]
Hozzászólás témája:  Re: HUD GYÖZLEMI ÜZENET!!! SZINVÁLTOS SEBZÉS KIIRO!!

Nem tudom melyik sebzéa kiíróra gondoltál, de én ezt írtam át.
Eredeti plugin link: Sebzés kiírás

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. #include <amxmisc>
  4.  
  5. #include <fakemeta_util>
  6.  
  7.  
  8.  
  9. #define PLUGIN "Advanced Bullet Damage"
  10.  
  11. #define VERSION "1.0"
  12.  
  13. #define AUTHOR "Sn!ff3r"
  14.  
  15.  
  16.  
  17. new g_type, g_enabled, g_recieved, bool:g_showrecieved, g_hudmsg1, g_hudmsg2
  18.  
  19.  
  20.  
  21. public plugin_init()
  22.  
  23. {
  24.  
  25. register_plugin(PLUGIN, VERSION, AUTHOR)
  26.  
  27.  
  28.  
  29. register_event("Damage", "on_damage", "b", "2!0", "3=0", "4!0")
  30.  
  31. register_event("HLTV", "on_new_round", "a", "1=0", "2=0")
  32.  
  33.  
  34.  
  35. g_type = register_cvar("amx_bulletdamage","1")
  36.  
  37. g_recieved = register_cvar("amx_bulletdamage_recieved","1")
  38.  
  39.  
  40.  
  41. g_hudmsg1 = CreateHudSyncObj()
  42.  
  43. g_hudmsg2 = CreateHudSyncObj()
  44.  
  45. }
  46.  
  47.  
  48.  
  49. public on_new_round()
  50.  
  51. {
  52.  
  53. g_enabled = get_pcvar_num(g_type)
  54.  
  55. if(get_pcvar_num(g_recieved)) g_showrecieved = true
  56.  
  57. }
  58.  
  59.  
  60.  
  61. public on_damage(id)
  62.  
  63. {
  64.  
  65. if(g_enabled)
  66.  
  67. {
  68.  
  69. static attacker; attacker = get_user_attacker(id)
  70.  
  71. static damage; damage = read_data(2)
  72.  
  73. if(g_showrecieved)
  74.  
  75. {
  76.  
  77. set_hudmessage(random(256), random(256), random(256), 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1)
  78.  
  79. ShowSyncHudMsg(id, g_hudmsg2, "%i^n", damage)
  80.  
  81. }
  82.  
  83. if(is_user_connected(attacker))
  84.  
  85. {
  86.  
  87. switch(g_enabled)
  88.  
  89. {
  90.  
  91. case 1: {
  92.  
  93. set_hudmessage(random(256), random(256), random(256), -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1)
  94.  
  95. ShowSyncHudMsg(attacker, g_hudmsg1, "%i^n", damage)
  96.  
  97. }
  98.  
  99. case 2: {
  100.  
  101. if(fm_is_ent_visible(attacker,id))
  102.  
  103. {
  104.  
  105. set_hudmessage(random(256), random(256), random(256), -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1)
  106.  
  107. ShowSyncHudMsg(attacker, g_hudmsg1, "%i^n", damage)
  108.  
  109. }
  110.  
  111. }
  112.  
  113. }
  114.  
  115. }
  116.  
  117. }
  118.  
  119. }
  120.  
  121. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  122.  
  123. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  124.  
  125. */
  126.  
  127.  

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