mirror of
https://github.com/rehlds/reapi.git
synced 2025-01-16 00:28:17 +03:00
parent
0a03f20f91
commit
d00489b0f2
@ -595,6 +595,16 @@ native WeaponIdType:rg_get_weaponbox_id(const entity);
|
||||
*/
|
||||
native rg_round_respawn(const index);
|
||||
|
||||
/*
|
||||
* Reset player maxspeed
|
||||
*
|
||||
* @param index Client index
|
||||
*
|
||||
* @noreturn
|
||||
*
|
||||
*/
|
||||
native rg_reset_maxspeed(const index);
|
||||
|
||||
/*
|
||||
* Draws a HUD progress bar which is fills from 0% to 100% for the time duration seconds.
|
||||
* NOTE: Set Duration to 0 to hide the bar.
|
||||
|
@ -1512,6 +1512,26 @@ cell AMX_NATIVE_CALL rg_round_respawn(AMX *amx, cell *params)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Reset player maxspeed
|
||||
*
|
||||
* @param index Client index
|
||||
*
|
||||
* @noreturn
|
||||
*
|
||||
* native rg_reset_maxspeed(const index);
|
||||
*/
|
||||
cell AMX_NATIVE_CALL rg_reset_maxspeed(AMX *amx, cell *params)
|
||||
{
|
||||
enum args_e { arg_count, arg_index };
|
||||
|
||||
CBasePlayer *pPlayer = g_ReGameFuncs->UTIL_PlayerByIndex(params[arg_index]);
|
||||
CHECK_CONNECTED(pPlayer, arg_index);
|
||||
|
||||
pPlayer->ResetMaxSpeed();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Draws a HUD progress bar which is fills from 0% to 100% for the time duration seconds.
|
||||
* NOTE: Set Duration to 0 to hide the bar.
|
||||
@ -1666,6 +1686,7 @@ AMX_NATIVE_INFO Misc_Natives_RG[] =
|
||||
{ "rg_is_player_can_takedamage", rg_is_player_can_takedamage },
|
||||
{ "rg_get_weaponbox_id", rg_get_weaponbox_id },
|
||||
{ "rg_round_respawn", rg_round_respawn },
|
||||
{ "rg_reset_maxspeed", rg_reset_maxspeed },
|
||||
|
||||
{ "rg_send_bartime", rg_send_bartime },
|
||||
{ "rg_send_bartime2", rg_send_bartime2 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user