[NATIVE] Player AirAccelerate
Posted: Sun Oct 04, 2026 3:02 pm
It has been said that changing sv_airaccelerate for only one player was impossible.
Well, that statement is no longer true.
The following natives allow you to modify a player's airaccelerate value:
To use this, install airaccelerate.amxx above any plugin in the plugins.ini.
In the plugins that use this, you will need this line at the top:
Requirements:
Orpheu
PM Functions pack (attached to first post)
You can use my own test plugin to try it out for yourself.
Commands:
say /aa get
- Shows your current airaccelerate value
say /aa reset
- Resets your airaccelerate value to sv_airaccelerate
say /aa <integer>
- Sets your airaccelerate value to <integer>
Well, that statement is no longer true.
The following natives allow you to modify a player's airaccelerate value:
Code: Select all
/*
* Sets a player's personal value for airaccelerate
*
* @param id - The player index
* @param airaccelerate - The value for airaccelerate
*
* @return The value for airaccelerate before setting to new value
*
* @note Use 0 as id to set all players' airaccelerate
*
*/
native set_user_airaccelerate(id, const airaccelerate);
/*
* Gets a player's personal value for airaccelerate
*
* @param id - The player index
*
* @return The value for airaccelerate
*
*/
native get_user_airaccelerate(id);
/*
* Resets a player's personal value for airaccelerate
*
* @param id - The player index
*
* @return 1
*
* @note Use 0 as id to reset all players' airaccelerate
*
*/
native reset_user_airaccelerate(id);In the plugins that use this, you will need this line at the top:
Code: Select all
#include <airaccelerate>Orpheu
PM Functions pack (attached to first post)
You can use my own test plugin to try it out for yourself.
Commands:
say /aa get
- Shows your current airaccelerate value
say /aa reset
- Resets your airaccelerate value to sv_airaccelerate
say /aa <integer>
- Sets your airaccelerate value to <integer>