mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +08:00
feat(Util/Session): Added join_type function
This commit is contained in:
parent
a214516673
commit
390c118303
19
BigBaseV2/src/util/session.hpp
Normal file
19
BigBaseV2/src/util/session.hpp
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "core/data/session_types.hpp"
|
||||||
|
#include "script_global.hpp"
|
||||||
|
#include "script.hpp"
|
||||||
|
|
||||||
|
namespace big::session
|
||||||
|
{
|
||||||
|
void join_type(SessionType session)
|
||||||
|
{
|
||||||
|
if (session.id == eSessionType::LEAVE_ONLINE)
|
||||||
|
*script_global(1312443).at(2).as<int*>() = -1;
|
||||||
|
else
|
||||||
|
*script_global(1312860).as<int*>() = (int)session.id;
|
||||||
|
|
||||||
|
*script_global(1312443).as<int*>() = 1;
|
||||||
|
script::get_current()->yield(200ms);
|
||||||
|
*script_global(1312443).as<int*>() = 0;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user