potential issue fix with isnotnearplayer
This commit is contained in:
parent
3dd5ec63c9
commit
17285c5251
@ -17039,8 +17039,11 @@ stock isNotNearPlayer( playerid, nearid, Float: distance = 200.0 )
|
|||||||
new
|
new
|
||||||
Float: X, Float: Y, Float: Z;
|
Float: X, Float: Y, Float: Z;
|
||||||
|
|
||||||
|
if ( GetPlayerInterior( playerid ) == GetPlayerInterior( nearid ) && GetPlayerVirtualWorld( playerid ) == GetPlayerVirtualWorld( nearid ) ) {
|
||||||
|
GetPlayerPos( nearid, X, Y, Z );
|
||||||
|
} else {
|
||||||
GetPlayerOutsidePos( nearid, X, Y, Z );
|
GetPlayerOutsidePos( nearid, X, Y, Z );
|
||||||
|
}
|
||||||
return GetPlayerDistanceFromPoint( playerid, X, Y, Z ) > distance ? 1 : 0;
|
return GetPlayerDistanceFromPoint( playerid, X, Y, Z ) > distance ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user