Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Wklejka 57x069li8q dodana przez Gość, 12.06.2012 09:37
Zabójcze Pióro
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97.
#include <amxmodx> #include <amxmisc> #include <codmod> #include <engine> #include <hamsandwich> #include <fakemeta> #include <fun> new const nazwa[] = "Zabojcze Pioro"; new const opis[] = ""; new const bronie = (1<<CSW_FLASHBANG); new const zdrowie = 0; new const kondycja = 30; new const inteligencja = 0; new const wytrzymalosc = 0; new skoki[33]; new ma_klase[33]; public plugin_init() { register_plugin(nazwa, "1.0", "amxx.pl"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_event("CurWeapon", "eventKnife_Niewidzialnosc", "be", "1=1"); RegisterHam(Ham_Spawn, "player", "fwSpawn_Grawitacja", 1); register_forward(FM_CmdStart, "fwCmdStart_MultiJump"); } public cod_class_enabled(id) { entity_set_float(id, EV_FL_gravity, 600.0/800.0); give_item(id, "weapon_flashbang"); give_item(id, "weapon_flashbang"); ma_klase[id] = true; } public cod_class_disabled(id) { set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255); entity_set_float(id, EV_FL_gravity, 1.0); ma_klase[id] = false; } public eventKnife_Niewidzialnosc(id) { if(!ma_klase[id]) return; if( read_data(2) == CSW_KNIFE ) { set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 50); } else { set_rendering(id,kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255); } } public fwSpawn_Grawitacja(id) { if(ma_klase[id]) entity_set_float(id, EV_FL_gravity, 600.0/800.0); } public fwCmdStart_MultiJump(id, uc_handle) { if(!is_user_alive(id) || !ma_klase[id]) return FMRES_IGNORED; new flags = pev(id, pev_flags); if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]) { skoki[id]--; new Float:velocity[3]; pev(id, pev_velocity,velocity); velocity[2] = random_float(265.0,285.0); set_pev(id, pev_velocity,velocity); } else if(flags & FL_ONGROUND) skoki[id] = 5; return FMRES_IGNORED; }
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011