#include #include #include #include new cvar_enable, cvar_humangravity, cvar_lowgravity public plugin_init() { register_plugin("[ZP] Addon: Low Gravity, Round Not Started", "0.1", "fl0wer") RegisterHam(Ham_Player_PreThink, "player", "Human_PreThink", 1) cvar_enable = register_cvar("zp_low_gravity_not_round_started_enable", "1") // 1 - on, 0 - off cvar_humangravity = register_cvar("zp_human_gravity", "") // Do not touch! cvar_lowgravity = register_cvar("zp_human_low_gravity", "400") // Low Gravity, 800 - Standart } public Human_PreThink(id) { if(!is_user_alive(id) || get_pcvar_num(cvar_enable) != 1) return HAM_IGNORED if(!zp_has_round_started()) set_pev(id, pev_gravity, get_pcvar_float(cvar_lowgravity) / 800) else set_pev(id, pev_gravity, get_pcvar_float(cvar_humangravity)) return HAM_IGNORED }