hlmod.hu
https://hlmod.hu/

Sebző
https://hlmod.hu/viewtopic.php?f=9&t=15986
Oldal: 1 / 1

Szerző:  golden15 [2014.05.23. 13:47 ]
Hozzászólás témája:  Sebző

Valaki beleírná nekem ,hogy ,ha engem sebeznek azt is írja?. ,mert ebben csak az van ,hogy amit te sebzel

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

Szerző:  CeDee [2014.05.23. 17:45 ]
Hozzászólás témája:  Re: Sebző

Az készítőt legyél szíves NEM ÁTÍRNI!!!


( Amúgy ha kicsit használod a fórum keresőjét meg is találhattad volna! Anno én is ugyan ezt kértem akkor Metal segített. )
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.  
  22. new g_iPlayerPos[MAX_PLAYERS+1]
  23. new g_iMaxPlayers
  24. new g_pCvarEnabled
  25.  
  26. public plugin_init()
  27. {
  28. register_plugin(PLUGIN, VERSION, AUTHOR)
  29. g_pCvarEnabled = register_cvar("bullet_damage", "1")
  30. register_event("Damage", "Event_Damage", "b", "2>0", "3=0")
  31. g_iMaxPlayers = get_maxplayers()
  32. }
  33.  
  34. public Event_Damage( iVictim )
  35. {
  36. if( get_pcvar_num(g_pCvarEnabled) && (read_data(4) || read_data(5) || read_data(6)) )
  37. {
  38. new id = get_user_attacker(iVictim)
  39. if( (1 <= id <= g_iMaxPlayers) && is_user_connected(id) )
  40. {
  41. new iPos = ++g_iPlayerPos[id]
  42. if( iPos == sizeof(g_flCoords) )
  43. {
  44. iPos = g_iPlayerPos[id] = 0
  45. }
  46. set_hudmessage(0, 40, 80, Float:g_flCoords[iPos][0], Float:g_flCoords[iPos][1], 0, 0.1, 2.5, 0.02, 0.02, -1)
  47. show_hudmessage(id, "%d", read_data(2))
  48. }
  49. if( (1 <= iVictim <= g_iMaxPlayers) && is_user_connected(iVictim) )
  50. {
  51. new iPos = ++g_iPlayerPos[iVictim]
  52. if( iPos == sizeof(g_flCoords) )
  53. {
  54. iPos = g_iPlayerPos[iVictim] = 0
  55. }
  56. set_hudmessage(100, 40, 80, Float:g_flCoords[iPos][0], Float:g_flCoords[iPos][1], 0, 0.1, 2.5, 0.02, 0.02, -1)
  57. show_hudmessage(iVictim, "%d", read_data(2))
  58. }
  59.  
  60. }
  61. }

Szerző:  golden15 [2014.05.23. 17:53 ]
Hozzászólás témája:  Re: Sebző

Igen netalán cs-ben a nevem Author nem?!:.-.-"..
Kamu vagy.. Am köszi..

Szerző:  CeDee [2014.05.23. 17:59 ]
Hozzászólás témája:  Re: Sebző

Idézet:
Az készítőt legyél szíves NEM ÁTÍRNI!!!


NEM NEM NEM

Nem te írtad csak azért mondtam.

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