diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp index ffc108c..b64bd90 100644 --- a/src/zombiereloaded.sp +++ b/src/zombiereloaded.sp @@ -132,13 +132,15 @@ public Plugin:myinfo = * @param late True if the plugin was loaded after map change, false on map start. * @param error Error message if load failed. * @param err_max Max length of the error message. + * + * @return APLRes_Success for load success, APLRes_Failure or APLRes_SilentFailure otherwise. */ -public bool:AskPluginLoad(Handle:myself, bool:late, String:error[], err_max) +public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) { // TODO: EXTERNAL API // Let plugin load. - return true; + return APLRes_Success; } /** diff --git a/src/zr/soundeffects/voice.inc b/src/zr/soundeffects/voice.inc index f846956..633ceee 100644 --- a/src/zr/soundeffects/voice.inc +++ b/src/zr/soundeffects/voice.inc @@ -111,8 +111,9 @@ stock bool:VoiceSetClientListening(iReceiver, iSender, bool:bListen) return false; } - SetClientListening(iReceiver, iSender, bListen); - return true; + new ListenOverride:override = bListen ? Listen_Yes : Listen_No; + + return SetListenOverride(iReceiver, iSender, override); } /**