mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-11 09:48:03 +08:00
21 lines
471 B
C++
21 lines
471 B
C++
#pragma once
|
|
|
|
namespace big
|
|
{
|
|
namespace freemode
|
|
{
|
|
inline void NETWORK_BAIL(rage::scrNativeCallContext* src)
|
|
{
|
|
LOG(INFO) << "NETWORK_BAIL prevented";
|
|
}
|
|
|
|
inline void IS_PLAYER_PLAYING(rage::scrNativeCallContext* src)
|
|
{
|
|
// block undead OTR
|
|
if (g->session.decloak_players && src->get_arg<Player>(0) != self::id)
|
|
src->set_return_value<BOOL>(TRUE);
|
|
else
|
|
src->set_return_value<BOOL>(PLAYER::IS_PLAYER_PLAYING(src->get_arg<Player>(0)));
|
|
};
|
|
}
|
|
} |