open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

AllowPlayerTeleport not considering AllowAdminTeleport

Open NexiusTailer opened this issue 2 years ago • 0 comments

AllowPlayerTeleport not considering AllowAdminTeleport

According to https://github.com/openmultiplayer/open.mp/blob/62e3415772e5fd6f43ff15f04058072f9722e654/Server/Components/Pawn/Scripting/Player/Natives.cpp#L882-L886 and https://github.com/openmultiplayer/open.mp/blob/62e3415772e5fd6f43ff15f04058072f9722e654/Server/Source/player_impl.hpp#L1749-L1752

the native AllowPlayerTeleport works always not considering whether AllowAdminTeleport is enabled or not before it.

In older SA-MP versions the documented behaviour of that native was the following:

This function will work only if AllowAdminTeleport is enabled

this is kinda behaviour difference with a deprecated, but still originally SA-MP native.

NexiusTailer avatar Jul 01 '23 17:07 NexiusTailer