Skip to content

Commit

Permalink
Small Fixing update
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectScrash committed May 17, 2022
1 parent 9811656 commit 28c11f4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions addons/amxmodx/scripting/zombie_plague_special_45.sma
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@
- Fixed Natives: "zp_reset_user_knockback" and "zp_get_default_knockback"
- Small otimization on code in Admin actions
- Now flame are in entities now.
- Fixed Submodel/Skin support (I think)



Expand Down Expand Up @@ -10050,8 +10051,8 @@ public native_register_gamemode(plugin_id, num_params) { // Native: zp_register_
ArrayPushCell(g_gm_amb_enable, enable)

amx_load_setting_string_arr(ZP_CUSTOMIZATION_FILE, "Ambience Sounds", fmt("%s SOUNDS", section), ArrSound)
amx_load_setting_float_arr(ZP_CUSTOMIZATION_FILE, "Ambience Sounds", fmt("%s DURATION", section), ArrDuration)
AddSettingParamForNoobs(ZP_CUSTOMIZATION_FILE, ArrSound, ArrDuration, "Ambience Sounds", fmt("%s DURATION", section), 0)
amx_load_setting_float_arr(ZP_CUSTOMIZATION_FILE, "Ambience Sounds", fmt("%s DURATIONS", section), ArrDuration)
AddSettingParamForNoobs(ZP_CUSTOMIZATION_FILE, ArrSound, ArrDuration, "Ambience Sounds", fmt("%s DURATIONS", section), 0)

if(ArraySize(ArrSound) > 0) {
ArrayPushCell(g_gm_use_amb, true)
Expand All @@ -10065,7 +10066,7 @@ public native_register_gamemode(plugin_id, num_params) { // Native: zp_register_
else {
amx_save_setting_string(ZP_CUSTOMIZATION_FILE, "Ambience Sounds", fmt("%s ENABLE", section), "-1")
amx_save_setting_string(ZP_CUSTOMIZATION_FILE, "Ambience Sounds", fmt("%s SOUNDS", section), "")
amx_save_setting_string(ZP_CUSTOMIZATION_FILE, "Ambience Sounds", fmt("%s DURATION", section), "")
amx_save_setting_string(ZP_CUSTOMIZATION_FILE, "Ambience Sounds", fmt("%s DURATIONS", section), "")
ArrayPushCell(g_gm_use_amb, false)
}

Expand Down Expand Up @@ -10136,7 +10137,7 @@ public native_register_gamemode_ambience(plugin_id, num_params)
ArrayPushCell(ArrDuration, Duration)

amx_save_setting_string_arr(ZP_CUSTOMIZATION_FILE, "Ambience Sounds", fmt("%s SOUNDS", upper_real_name), ArrSound)
amx_save_setting_float_arr(ZP_CUSTOMIZATION_FILE, "Ambience Sounds", fmt("%s DURATION", upper_real_name), ArrDuration)
amx_save_setting_float_arr(ZP_CUSTOMIZATION_FILE, "Ambience Sounds", fmt("%s DURATIONS", upper_real_name), ArrDuration)

return true;
}
Expand Down

0 comments on commit 28c11f4

Please sign in to comment.