hlmod.hu
https://hlmod.hu/

Sebzés jelző
https://hlmod.hu/viewtopic.php?f=9&t=10925
Oldal: 1 / 1

Szerző:  kecske123 [2013.09.17. 15:59 ]
Hozzászólás témája:  Sebzés jelző

ezt kéne ugy megirni hogy Sárgával
irja amikor sebzek amikor engem sebeznek pedig Pirossal

Csatolmányok:
Magyarázat:ezt kéne ugy megirni hogy Sárgával
irja amikor sebzek amikor engem sebeznek pedig Pirossal

bullet_damage.sma [1.11KiB]
Letöltve 30 alkalommal.

Szerző:  RaZzoR [UJRA :D] [2013.09.17. 16:02 ]
Hozzászólás témája:  Re: Sebzés jelző

Ebbe nincsen benne, mikor téged sebeznek, kiírja.

De sárgára átírtam, amikor te sebzel vkit

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. #define PLUGIN "Bullet Damage"
  4. #define AUTHOR "ConnorMcLeod"
  5. #define VERSION "0.0.1"
  6.  
  7. #define MAX_PLAYERS 32
  8.  
  9. new const Float:g_flCoords[][] =
  10. {
  11. {0.50, 0.40},
  12. {0.56, 0.44},
  13. {0.60, 0.50},
  14. {0.56, 0.56},
  15. {0.50, 0.60},
  16. {0.44, 0.56},
  17. {0.40, 0.50},
  18. {0.44, 0.44}
  19. }
  20.  
  21. new g_iPlayerPos[MAX_PLAYERS+1]
  22.  
  23. new g_iMaxPlayers
  24. new g_pCvarEnabled
  25.  
  26. public plugin_init()
  27. {
  28. register_plugin(PLUGIN, VERSION, AUTHOR)
  29.  
  30. g_pCvarEnabled = register_cvar("bullet_damage", "1")
  31.  
  32. register_event("Damage", "Event_Damage", "b", "2>0", "3=0")
  33.  
  34. g_iMaxPlayers = get_maxplayers()
  35. }
  36.  
  37. public Event_Damage( iVictim )
  38. {
  39. if( get_pcvar_num(g_pCvarEnabled) && (read_data(4) || read_data(5) || read_data(6)) )
  40. {
  41. new id = get_user_attacker(iVictim)
  42. if( (1 <= id <= g_iMaxPlayers) && is_user_connected(id) )
  43. {
  44. new iPos = ++g_iPlayerPos[id]
  45. if( iPos == sizeof(g_flCoords) )
  46. {
  47. iPos = g_iPlayerPos[id] = 0
  48. }
  49. set_hudmessage(255, 255, 51, Float:g_flCoords[iPos][0], Float:g_flCoords[iPos][1], 0, 0.1, 2.5, 0.02, 0.02, -1)
  50. show_hudmessage(id, "%d", read_data(2))
  51. }
  52. }
  53. }

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