From 17285c525125737419ef81235927b0804b7561ca Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Wed, 10 Oct 2018 16:13:45 +1100 Subject: [PATCH] potential issue fix with isnotnearplayer --- gamemodes/sf-cnr.pwn | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index 4d28e72..c676e59 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -17039,8 +17039,11 @@ stock isNotNearPlayer( playerid, nearid, Float: distance = 200.0 ) new Float: X, Float: Y, Float: Z; - GetPlayerOutsidePos( nearid, X, Y, Z ); - + if ( GetPlayerInterior( playerid ) == GetPlayerInterior( nearid ) && GetPlayerVirtualWorld( playerid ) == GetPlayerVirtualWorld( nearid ) ) { + GetPlayerPos( nearid, X, Y, Z ); + } else { + GetPlayerOutsidePos( nearid, X, Y, Z ); + } return GetPlayerDistanceFromPoint( playerid, X, Y, Z ) > distance ? 1 : 0; }