hlmod.hu
https://hlmod.hu/

Bhop plugin
https://hlmod.hu/viewtopic.php?f=29&t=11159
Oldal: 1 / 1

Szerző:  slre141 [ 2013.10.02. 06:21 ]
Hozzászólás témája:  Bhop plugin

Olyan plugin kellene ami a bunnyhoop ba van benne a hirdetö szöveg alamfa van bunny hoop használd W-A-S-D
Almafa ez legyen zöld
a w-a-s-d az pedig legyen kék
és a van bunny hoop az legyen sima szinü

Szerző:  Axion [ 2013.10.02. 06:31 ]
Hozzászólás témája:  Re: Bhop plugin

SMA Forráskód: [ Mindet kijelol ]
  1. N.e.c|~ Only Dust2 van bunny hoop használd W-A-S-D
  2. /*
  3.  *
  4.  * Author: Cheesy Peteza
  5.  * Date: 22-Apr-2004 (updated 2-March-2005)
  6.  *
  7.  *
  8.  * Description: Enable bunny hopping in Counter-Strike.
  9.  *
  10.  * Cvars:
  11.  * bh_enabled 1 to enable this plugin, 0 to disable.
  12.  * bh_autojump If set to 1 players just need to hold down jump to bunny hop (no skill required)
  13.  * bh_showusage If set to 1 it will inform joining players that bunny hopping has been enabled
  14.  * and how to use it if bh_autojump enabled.
  15.  *
  16.  * Requirements: AMXModX 0.16 or greater
  17.  *
  18.  *
  19.  */
  20.  
  21. #include <amxmodx>
  22. #include <engine>
  23. #include <colorchat>
  24.  
  25. #define FL_WATERJUMP (1<<11) // player jumping out of water
  26. #define FL_ONGROUND (1<<9) // At rest / on the ground
  27.  
  28. public plugin_init() {
  29. register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
  30. register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)
  31.  
  32. register_cvar("bh_enabled", "1")
  33. register_cvar("bh_autojump", "1")
  34. register_cvar("bh_showusage", "1")
  35. }
  36.  
  37. public client_PreThink(id) {
  38. if (!get_cvar_num("bh_enabled"))
  39. return PLUGIN_CONTINUE
  40.  
  41. entity_set_float(id, EV_FL_fuser2, 0.0) // Disable slow down after jumping
  42.  
  43. if (!get_cvar_num("bh_autojump"))
  44. return PLUGIN_CONTINUE
  45.  
  46. // Code from CBasePlayer::Jump (player.cpp) Make a player jump automatically
  47. if (entity_get_int(id, EV_INT_button) & 2) { // If holding jump
  48. new flags = entity_get_int(id, EV_INT_flags)
  49.  
  50. if (flags & FL_WATERJUMP)
  51. return PLUGIN_CONTINUE
  52. if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
  53. return PLUGIN_CONTINUE
  54. if ( !(flags & FL_ONGROUND) )
  55. return PLUGIN_CONTINUE
  56.  
  57. new Float:velocity[3]
  58. entity_get_vector(id, EV_VEC_velocity, velocity)
  59. velocity[2] += 250.0
  60. entity_set_vector(id, EV_VEC_velocity, velocity)
  61.  
  62. entity_set_int(id, EV_INT_gaitsequence, 6) // Play the Jump Animation
  63. }
  64. return PLUGIN_CONTINUE
  65. }
  66.  
  67. public client_authorized(id)
  68. set_task(30.0, "showUsage", id)
  69.  
  70. public showUsage(id) {
  71. if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )
  72. return PLUGIN_HANDLED
  73.  
  74. if ( !get_cvar_num("bh_autojump") ) {
  75. client_print(id, print_chat, "x04N.e.c|~ Only Dust2 van bunny hoop használd x03W-A-S-D")
  76. } else {
  77. client_print(id, print_chat, "x04N.e.c|~ Only Dust2 van bunny hoop használd x03W-A-S-D")
  78. }
  79. return PLUGIN_HANDLED
  80. }
  81.  


nem volt teszt!

Szerző:  slre141 [ 2013.10.02. 06:47 ]
Hozzászólás témája:  Re: Bhop plugin

Teszteltem és ezt irja ki szeron
x04Almafa van bunny hoop hasznld x03W-A-S-D
Sajna nem jo :S

Szerző:  stupid [ 2013.10.02. 06:58 ]
Hozzászólás témája:  Re: Bhop plugin

SMA Forráskód: [ Mindet kijelol ]
  1. N.e.c|~ Only Dust2 van bunny hoop használd W-A-S-D
  2. /*
  3.   *
  4.   * Author: Cheesy Peteza
  5.   * Date: 22-Apr-2004 (updated 2-March-2005)
  6.   *
  7.   *
  8.   * Description: Enable bunny hopping in Counter-Strike.
  9.   *
  10.   * Cvars:
  11.   * bh_enabled 1 to enable this plugin, 0 to disable.
  12.   * bh_autojump If set to 1 players just need to hold down jump to bunny hop (no skill required)
  13.   * bh_showusage If set to 1 it will inform joining players that bunny hopping has been enabled
  14.   * and how to use it if bh_autojump enabled.
  15.   *
  16.   * Requirements: AMXModX 0.16 or greater
  17.   *
  18.   *
  19.   */
  20.  
  21. #include <amxmodx>
  22. #include <engine>
  23. #include <colorchat>
  24.  
  25. #define FL_WATERJUMP (1<<11) // player jumping out of water
  26. #define FL_ONGROUND (1<<9) // At rest / on the ground
  27.  
  28. public plugin_init() {
  29. register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
  30. register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)
  31.  
  32. register_cvar("bh_enabled", "1")
  33. register_cvar("bh_autojump", "1")
  34. register_cvar("bh_showusage", "1")
  35. }
  36.  
  37. public client_PreThink(id) {
  38. if (!get_cvar_num("bh_enabled"))
  39. return PLUGIN_CONTINUE
  40.  
  41. entity_set_float(id, EV_FL_fuser2, 0.0) // Disable slow down after jumping
  42.  
  43. if (!get_cvar_num("bh_autojump"))
  44. return PLUGIN_CONTINUE
  45.  
  46. // Code from CBasePlayer::Jump (player.cpp) Make a player jump automatically
  47. if (entity_get_int(id, EV_INT_button) & 2) { // If holding jump
  48. new flags = entity_get_int(id, EV_INT_flags)
  49.  
  50. if (flags & FL_WATERJUMP)
  51. return PLUGIN_CONTINUE
  52. if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
  53. return PLUGIN_CONTINUE
  54. if ( !(flags & FL_ONGROUND) )
  55. return PLUGIN_CONTINUE
  56.  
  57. new Float:velocity[3]
  58. entity_get_vector(id, EV_VEC_velocity, velocity)
  59. velocity[2] += 250.0
  60. entity_set_vector(id, EV_VEC_velocity, velocity)
  61.  
  62. entity_set_int(id, EV_INT_gaitsequence, 6) // Play the Jump Animation
  63. }
  64. return PLUGIN_CONTINUE
  65. }
  66.  
  67. public client_authorized(id)
  68. set_task(30.0, "showUsage", id)
  69.  
  70. public showUsage(id) {
  71. if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )
  72. return PLUGIN_HANDLED
  73.  
  74. if ( !get_cvar_num("bh_autojump") ) {
  75. ColorChat(id, GREEN, "N.e.c|~ Only Dust2^1 van bunny hoop használd x03W-A-S-D")
  76. } else {
  77. ColorChat(id, GREEN, "N.e.c|~ Only Dust2^1 van bunny hoop használd x03W-A-S-D")
  78. }
  79. return PLUGIN_HANDLED
  80. }
  81.  

Szerző:  slre141 [ 2013.10.02. 18:24 ]
Hozzászólás témája:  Re: Bhop plugin

A kék nem jo :S a többi jo

Szerző:  stupid [ 2013.10.02. 18:35 ]
Hozzászólás témája:  Re: Bhop plugin

slre141 írta:
A kék nem jo :S a többi jo

SMA Forráskód: [ Mindet kijelol ]
  1. N.e.c|~ Only Dust2 van bunny hoop használd W-A-S-D
  2. /*
  3.   *
  4.   * Author: Cheesy Peteza
  5.   * Date: 22-Apr-2004 (updated 2-March-2005)
  6.   *
  7.   *
  8.   * Description: Enable bunny hopping in Counter-Strike.
  9.   *
  10.   * Cvars:
  11.   * bh_enabled 1 to enable this plugin, 0 to disable.
  12.   * bh_autojump If set to 1 players just need to hold down jump to bunny hop (no skill required)
  13.   * bh_showusage If set to 1 it will inform joining players that bunny hopping has been enabled
  14.   * and how to use it if bh_autojump enabled.
  15.   *
  16.   * Requirements: AMXModX 0.16 or greater
  17.   *
  18.   *
  19.   */
  20.  
  21. #include <amxmodx>
  22. #include <engine>
  23. #include <colorchat>
  24.  
  25. #define FL_WATERJUMP (1<<11) // player jumping out of water
  26. #define FL_ONGROUND (1<<9) // At rest / on the ground
  27.  
  28. public plugin_init() {
  29. register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
  30. register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)
  31.  
  32. register_cvar("bh_enabled", "1")
  33. register_cvar("bh_autojump", "1")
  34. register_cvar("bh_showusage", "1")
  35. }
  36.  
  37. public client_PreThink(id) {
  38. if (!get_cvar_num("bh_enabled"))
  39. return PLUGIN_CONTINUE
  40.  
  41. entity_set_float(id, EV_FL_fuser2, 0.0) // Disable slow down after jumping
  42.  
  43. if (!get_cvar_num("bh_autojump"))
  44. return PLUGIN_CONTINUE
  45.  
  46. // Code from CBasePlayer::Jump (player.cpp) Make a player jump automatically
  47. if (entity_get_int(id, EV_INT_button) & 2) { // If holding jump
  48. new flags = entity_get_int(id, EV_INT_flags)
  49.  
  50. if (flags & FL_WATERJUMP)
  51. return PLUGIN_CONTINUE
  52. if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
  53. return PLUGIN_CONTINUE
  54. if ( !(flags & FL_ONGROUND) )
  55. return PLUGIN_CONTINUE
  56.  
  57. new Float:velocity[3]
  58. entity_get_vector(id, EV_VEC_velocity, velocity)
  59. velocity[2] += 250.0
  60. entity_set_vector(id, EV_VEC_velocity, velocity)
  61.  
  62. entity_set_int(id, EV_INT_gaitsequence, 6) // Play the Jump Animation
  63. }
  64. return PLUGIN_CONTINUE
  65. }
  66.  
  67. public client_authorized(id)
  68. set_task(30.0, "showUsage", id)
  69.  
  70. public showUsage(id) {
  71. if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )
  72. return PLUGIN_HANDLED
  73.  
  74. if ( !get_cvar_num("bh_autojump") ) {
  75. ColorChat(id, GREEN, "N.e.c|~ Only Dust2^1 van bunny hoop használd ^3W-A-S-D")
  76. } else {
  77. ColorChat(id, GREEN, "N.e.c|~ Only Dust2^1 van bunny hoop használd ^3W-A-S-D")
  78. }
  79. return PLUGIN_HANDLED
  80. }

Bocsika, javítva.

Szerző:  norbee.16 [ 2013.10.02. 18:39 ]
Hozzászólás témája:  Re: Bhop plugin

slre141 írta:
A kék nem jo :S a többi jo

Konvertád at és ragd be!
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. #include <amxmodx>
  3.  
  4. #include <engine>
  5.  
  6. #include <colorchat>
  7.  
  8.  
  9.  
  10. #define FL_WATERJUMP (1<<11) // player jumping out of water
  11.  
  12. #define FL_ONGROUND (1<<9) // At rest / on the ground
  13.  
  14.  
  15.  
  16. public plugin_init() {
  17.  
  18. register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
  19.  
  20. register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)
  21.  
  22.  
  23.  
  24. register_cvar("bh_enabled", "1")
  25.  
  26. register_cvar("bh_autojump", "1")
  27.  
  28. register_cvar("bh_showusage", "1")
  29.  
  30. }
  31.  
  32.  
  33.  
  34. public client_PreThink(id) {
  35.  
  36. if (!get_cvar_num("bh_enabled"))
  37.  
  38. return PLUGIN_CONTINUE
  39.  
  40.  
  41.  
  42. entity_set_float(id, EV_FL_fuser2, 0.0) // Disable slow down after jumping
  43.  
  44.  
  45.  
  46. if (!get_cvar_num("bh_autojump"))
  47.  
  48. return PLUGIN_CONTINUE
  49.  
  50.  
  51.  
  52. // Code from CBasePlayer::Jump (player.cpp) Make a player jump automatically
  53.  
  54. if (entity_get_int(id, EV_INT_button) & 2) { // If holding jump
  55.  
  56. new flags = entity_get_int(id, EV_INT_flags)
  57.  
  58.  
  59.  
  60. if (flags & FL_WATERJUMP)
  61.  
  62. return PLUGIN_CONTINUE
  63.  
  64. if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
  65.  
  66. return PLUGIN_CONTINUE
  67.  
  68. if ( !(flags & FL_ONGROUND) )
  69.  
  70. return PLUGIN_CONTINUE
  71.  
  72.  
  73.  
  74. new Float:velocity[3]
  75.  
  76. entity_get_vector(id, EV_VEC_velocity, velocity)
  77.  
  78. velocity[2] += 250.0
  79.  
  80. entity_set_vector(id, EV_VEC_velocity, velocity)
  81.  
  82.  
  83.  
  84. entity_set_int(id, EV_INT_gaitsequence, 6) // Play the Jump Animation
  85.  
  86. }
  87.  
  88. return PLUGIN_CONTINUE
  89.  
  90. }
  91.  
  92.  
  93.  
  94. public client_authorized(id)
  95.  
  96. set_task(30.0, "showUsage", id)
  97.  
  98.  
  99.  
  100. public showUsage(id) {
  101.  
  102. if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )
  103.  
  104. return PLUGIN_HANDLED
  105.  
  106.  
  107.  
  108. if ( !get_cvar_num("bh_autojump") ) {
  109.  
  110. ColorChat(id, GREEN, "N.e.c|~ Only Dust2!n van bunny hoop használd !tW-A-S-D")
  111.  
  112. } else {
  113.  
  114. ColorChat(id, GREEN, "N.e.c|~ Only Dust2!n van bunny hoop használd !tW-A-S-D")
  115.  
  116. }
  117.  
  118. return PLUGIN_HANDLED
  119.  
  120. }
  121. stock print_color(const id, const input[], any:...)
  122. {
  123. new count = 1, players[32]
  124. static msg[191]
  125. vformat(msg, 190, input, 3)
  126.  
  127. replace_all(msg, 190, "!g", "^4")
  128. replace_all(msg, 190, "!y", "^1")
  129. replace_all(msg, 190, "!t", "^3")
  130. replace_all(msg, 190, "á", "á")
  131. replace_all(msg, 190, "é", "Ă©")
  132. replace_all(msg, 190, "í", "Ă")
  133. replace_all(msg, 190, "ó", "Ăł")
  134. replace_all(msg, 190, "ö", "ö")
  135. replace_all(msg, 190, "ő", "Ĺ‘")
  136. replace_all(msg, 190, "ú", "Ăş")
  137. replace_all(msg, 190, "ü", "ĂĽ")
  138. replace_all(msg, 190, "ű", "ű")
  139. replace_all(msg, 190, "Á", "Á")
  140. replace_all(msg, 190, "É", "É")
  141. replace_all(msg, 190, "Í", "ĂŤ")
  142. replace_all(msg, 190, "Ó", "Ă“")
  143. replace_all(msg, 190, "Ö", "Ă–")
  144. replace_all(msg, 190, "Ő", "Ő")
  145. replace_all(msg, 190, "Ú", "Ăš")
  146. replace_all(msg, 190, "Ü", "Ăś")
  147. replace_all(msg, 190, "Ű", "Ĺ°")
  148.  
  149. if (id) players[0] = id; else get_players(players, count, "ch")
  150. {
  151. for (new i = 0; i < count; i++)
  152. {
  153. if (is_user_connected(players[i]))
  154. {
  155. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  156. write_byte(players[i])
  157. write_string(msg)
  158. message_end()
  159. }
  160. }
  161. }
  162. return PLUGIN_HANDLED
  163. }
  164.  

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