hlmod.hu
https://hlmod.hu/

DeathRun Terrorista
https://hlmod.hu/viewtopic.php?f=29&t=15648
Oldal: 1 / 1

Szerző:  boldi99 [ 2014.05.02. 13:43 ]
Hozzászólás témája:  DeathRun Terrorista

ha a death runba Terrorista az ember a terrorista az ne tudjon bunnyzni csak simán menni 250 gyorsasággal valaki ezt nem tudná nekem meg csinálni egy ilyen plugint??

Szerző:  Mike Spy [ 2014.05.04. 11:10 ]
Hozzászólás témája:  Re: DeathRun Terrorista

Máskor egy bh-t azért linkelj amit át kell írni.

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <engine>
  3. #include <cstrike>
  4.  
  5. #define FL_WATERJUMP (1<<11) // player jumping out of water
  6. #define FL_ONGROUND (1<<9) // At rest / on the ground
  7.  
  8. public plugin_init() {
  9. register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
  10. register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)
  11.  
  12. register_cvar("bh_enabled", "1")
  13. register_cvar("bh_autojump", "1")
  14. register_cvar("bh_showusage", "1")
  15. }
  16.  
  17. public client_PreThink(id) {
  18. if (!get_cvar_num("bh_enabled"))
  19. return PLUGIN_CONTINUE
  20.  
  21. entity_set_float(id, EV_FL_fuser2, 0.0) // Disable slow down after jumping
  22.  
  23. if (!get_cvar_num("bh_autojump"))
  24. return PLUGIN_CONTINUE
  25.  
  26. // Code from CBasePlayer::Jump (player.cpp) Make a player jump automatically
  27. if (entity_get_int(id, EV_INT_button) & 2) { // If holding jump
  28. if(cs_get_user_team(id)!=CS_TEAM_CT) return PLUGIN_CONTINUE
  29. new flags = entity_get_int(id, EV_INT_flags)
  30.  
  31. if (flags & FL_WATERJUMP)
  32. return PLUGIN_CONTINUE
  33. if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
  34. return PLUGIN_CONTINUE
  35. if ( !(flags & FL_ONGROUND) )
  36. return PLUGIN_CONTINUE
  37.  
  38. new Float:velocity[3]
  39. entity_get_vector(id, EV_VEC_velocity, velocity)
  40. velocity[2] += 250.0
  41. entity_set_vector(id, EV_VEC_velocity, velocity)
  42.  
  43. entity_set_int(id, EV_INT_gaitsequence, 6) // Play the Jump Animation
  44. }
  45. return PLUGIN_CONTINUE
  46. }
  47.  
  48. public client_authorized(id)
  49. set_task(30.0, "showUsage", id)
  50.  
  51. public showUsage(id) {
  52. if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )
  53. return PLUGIN_HANDLED
  54.  
  55. if ( !get_cvar_num("bh_autojump") ) {
  56. client_print(id, print_chat, "[AMXX] A nyulugras be van kapcsolva a szerveren. Ugras utan nem lassulsz le.")
  57. } else {
  58. client_print(id, print_chat, "[AMXX] Automatikus nyulugras be van kapcsolva a szerveren.Az ugras lenyomva tartasaval tudod hasznalni.")
  59. }
  60. return PLUGIN_HANDLED
  61. }

Szerző:  boldi99 [ 2014.05.04. 11:39 ]
Hozzászólás témája:  Re: DeathRun Terrorista

Köszi:)
ez nem jó.. én olyat kértem h lehessen alapbol bunnyzni a szerveren( DeathRunon) és ha a CT-k pl meg halnak és Terrorista lesz valamelyik akkor a Terrorista az ne tudjon bujnnyzni mindig csak a CT-k.

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