well, you could use set_user_gravity from the fun module:
Code:
set_user_gravity(id,Float:amount);
however, it doesn't take an exact number like sv_gravity. instead, it takes a percentage of what the gravity currently is. so, setting amount as 1.0 will give you 100% of current gravity, 0.5 will be 50% of current gravity, and 2.0 will be 200% of current gravity.
it is still possible to set it to an exact number (ie: 800 instead of 1.0), by dividing what you want it to be by sv_gravity. since you want to set everyone's gravity, you'll have to get a list of players and loop through it.
so, here it is.
Code:
public set_all_gravity(Float:gravity) {
new Float:current_gravity = get_cvar_float("sv_gravity");
new Float:new_gravity = gravity / current_gravity;
new players[32], num, i;
get_players(players,num);
for(i=0;i<num;i++)
set_user_gravity(players[i],new_gravity);
}
just put this somewhere in your code, and then you can call it like any other function to set the gravity of all players in the server.
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."