From fcb5b3f3d7935f1f8e6ce6113ad5f4c8039bf580 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Sun, 25 Jul 2010 21:08:22 +0200 Subject: [PATCH] Removed use of deprecated functions. --- src/zombiereloaded.sp | 6 ++++-- src/zr/soundeffects/voice.inc | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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); } /**