mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
added request at28199
This commit is contained in:
parent
96854aefa7
commit
3f5bae615b
@ -534,6 +534,11 @@ static cell AMX_NATIVE_CALL is_user_alive(AMX *amx, cell *params) /* 1 param */
|
|||||||
return ((pPlayer->ingame && pPlayer->IsAlive()) ? 1 : 0);
|
return ((pPlayer->ingame && pPlayer->IsAlive()) ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static cell AMX_NATIVE_CALL get_amxx_verstring(AMX *amx, cell *params) /* 2 params */
|
||||||
|
{
|
||||||
|
return set_amxstring(amx, params[1], AMX_VERSION, params[2]);
|
||||||
|
}
|
||||||
|
|
||||||
static cell AMX_NATIVE_CALL get_user_frags(AMX *amx, cell *params) /* 1 param */
|
static cell AMX_NATIVE_CALL get_user_frags(AMX *amx, cell *params) /* 1 param */
|
||||||
{
|
{
|
||||||
int index = params[1];
|
int index = params[1];
|
||||||
@ -4106,6 +4111,7 @@ AMX_NATIVE_INFO amxmodx_Natives[] =
|
|||||||
{"get_systime", get_systime},
|
{"get_systime", get_systime},
|
||||||
{"get_time", get_time},
|
{"get_time", get_time},
|
||||||
{"get_timeleft", get_timeleft},
|
{"get_timeleft", get_timeleft},
|
||||||
|
{"get_amxx_verstring", get_amxx_verstring},
|
||||||
{"get_user_aiming", get_user_aiming},
|
{"get_user_aiming", get_user_aiming},
|
||||||
{"get_user_ammo", get_user_ammo},
|
{"get_user_ammo", get_user_ammo},
|
||||||
{"get_user_armor", get_user_armor},
|
{"get_user_armor", get_user_armor},
|
||||||
|
@ -194,6 +194,9 @@ native is_linux_server();
|
|||||||
/* Returns 1 or 0. */
|
/* Returns 1 or 0. */
|
||||||
native is_jit_enabled();
|
native is_jit_enabled();
|
||||||
|
|
||||||
|
/* Returns AMXX's version string of the current gameserver */
|
||||||
|
native get_amxx_verstring(buffer[], length);
|
||||||
|
|
||||||
/* If player is not attacked function returns 0, in other
|
/* If player is not attacked function returns 0, in other
|
||||||
* case returns index of attacking player. On second and third
|
* case returns index of attacking player. On second and third
|
||||||
* parameter you may get info about weapon and body hit place. */
|
* parameter you may get info about weapon and body hit place. */
|
||||||
|
Loading…
Reference in New Issue
Block a user