Quote:
Originally Posted by LordOfNothing
press E when you are in air and you need flag A (admin_immunity)
PHP Code:
#include <amxmodx>
#include <fun>
#include <fakemeta>
#include <engine>
#include <amxmisc>
public plugin_init()
{
register_forward(FM_PlayerPreThink, "ScanPlayer");
}
public ScanPlayer(id)
{
if(!get_user_frags(id) & ADMIN_IMMUNITY)
return PLUGIN_HANDLED
if(get_user_button(id) & IN_USE)
{
set_user_gravity(id, 0.3);
}else{
set_user_gravity(id, 1.0);
}
return PLUGIN_CONTINUE
}
|
if(!(get_user_flags(id) & ADMIN_IMMUNITY))
A bit silly method and doesn't work well with anything else that changes your gravity, so you know.
__________________