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 5hp1e3wo6etl dodana przez unknowN., 31.10.2013 16:06
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. 98. 99. 100. 101. 102. 103. 104. 105. 106. 107. 108.
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <codmod> #include <cstrike> #include <fakemeta> #include <engine> #include <hamsandwich> #include <colorchat> new const nazwa[] = "Admiral (PREMIUM)"; new const opis[] = "Otrzymuje 25 hp oraz pelen magazynek za kazde zabojstwo, szansa 1/15 na natychmiastowe zabicie z broni, zmniejszona grawitacja, zdobywa szybciej dosw."; new const bronie = (1<<CSW_M4A1)|(1<<CSW_XM1014); new const zdrowie = 15; new const kondycja = 30; new const inteligencja = 0; new const wytrzymalosc = 10; new bool:ma_klase[33]; new const maxClip[31] = { -1, 13, -1, 10, 1, 7, 1, 30, 30, 1, 30, 20, 25, 30, 35, 25, 12, 20, 10, 30, 100, 8, 30, 30, 20, 2, 7, 30, 30, -1, 50 }; public plugin_init() { register_plugin(nazwa, "1.0", "QTM_Peyote"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_forward(FM_CmdStart, "CmdStart"); register_event("DeathMsg", "DeathMsg", "ade"); RegisterHam(Ham_Spawn, "player", "fwSpawn_Grawitacja", 1); RegisterHam(Ham_TakeDamage, "player", "fwTakeDamage_JedenZ"); } public cod_class_enabled(id) { if(!(get_user_flags(id) & ADMIN_LEVEL_H)) { ColorChat(id, GREEN, "[Admiral] Nie masz uprawnien, aby uzywac tej klasy.") return COD_STOP; } entity_set_float(id, EV_FL_gravity, 600.0/800.0); ma_klase[id] = true; return COD_CONTINUE; } public cod_class_disabled(id) { entity_set_float(id, EV_FL_gravity, 1.0); ma_klase[id] = false; } public fwSpawn_Grawitacja(id) { if(ma_klase[id]) entity_set_float(id, EV_FL_gravity, 600.0/800.0); } public DeathMsg() { new killer = read_data(1); new victim = read_data(2); if(!is_user_connected(killer)) return PLUGIN_CONTINUE; if(ma_klase[victim] && !ma_klase[killer]) cod_set_user_xp(killer, cod_get_user_xp(killer)+25); if(ma_klase[killer]) { new cur_health = pev(killer, pev_health); new Float:max_health = 100.0+cod_get_user_health(killer); new Float:new_health = cur_health+25.0<max_health? cur_health+25.0: max_health; set_pev(killer, pev_health, new_health); new weapon = get_user_weapon(killer); if(maxClip[weapon] != -1) set_user_clip(killer, maxClip[weapon]); } return PLUGIN_CONTINUE; } stock set_user_clip(id, ammo) { new weaponname[32], weaponid = -1, weapon = get_user_weapon(id, _, _); get_weaponname(weapon, weaponname, 31); while ((weaponid = engfunc(EngFunc_FindEntityByString, weaponid, "classname", weaponname)) != 0) if (pev(weaponid, pev_owner) == id) { set_pdata_int(weaponid, 51, ammo, 4); return weaponid; } return 0; } public fwTakeDamage_JedenZ(this, idInf, idAtt, Float:fDmg, dmgBits){ if(!is_user_alive(idAtt) || !ma_klase[idAtt] || !(dmgBits & (1<<1) ) || random_num(1, 15) != 1 ) return HAM_IGNORED; cs_set_user_armor(this, 0, CS_ARMOR_NONE); SetHamParamFloat(4, float(get_user_health(this) + 1)); return HAM_HANDLED; }
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011