я не силен в настройках плагинв,но хотелось бы узнать,как сделать,чтобы покупались мины для всех игроков,а не только для админов?
/* * * Realistic Reloading * By: Edgar De Loa (AKA eDeloa and Mex) * * This plugin will empty the players' clip before * each reload, making the entire reload mechanism * seem more realistic. * * Questions, comments, suggestions? * Email me at: edeloa1 [at] gmail.com * * Changelog * * 1.1 - Added both shotguns as exceptions * 1.0 - Initial release * */
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) }
public client_PreThink(id) { if (is_user_alive(id) && (get_user_button(id) & IN_RELOAD) && canReload(id)) { handle_ammo(id) } }
public canReload(id) { new clipAmmo, bpAmmo, weapID = get_user_weapon(id, clipAmmo, bpAmmo)
switch(weapID) { case CSW_KNIFE: return false case CSW_HEGRENADE: return false case CSW_SMOKEGRENADE: return false case CSW_FLASHBANG: return false case CSW_XM1014: return false case CSW_M3: return false }