mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-07-06 01:15:04 +03:00
Added get_logevent_state
Added get_logevent_state
This commit is contained in:
parent
0cf1c9bcc9
commit
b93533c085
@ -3356,6 +3356,19 @@ static cell AMX_NATIVE_CALL disable_logevent(AMX *amx, cell *params)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static cell AMX_NATIVE_CALL get_logevent_state(AMX *amx, cell *params)
|
||||||
|
{
|
||||||
|
auto handle = LogEventHandles.lookup(params[1]);
|
||||||
|
|
||||||
|
if (!handle)
|
||||||
|
{
|
||||||
|
LogError(amx, AMX_ERR_NATIVE, "Invalid log event handle: %d", params[1]);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return handle->m_logevent->getForwardState() == FSTATE_ACTIVE ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
// native is_module_loaded(const name[]);
|
// native is_module_loaded(const name[]);
|
||||||
static cell AMX_NATIVE_CALL is_module_loaded(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL is_module_loaded(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user