You can get client cvar like this :
Code:
new Float:g_speed[33][3]
public client_connect(id) {
query_client_cvar(id , "cl_forwardspeed" , "cvar_result1");
query_client_cvar(id , "cl_backspeed" , "cvar_result2");
query_client_cvar(id , "cl_sidespeed" , "cvar_result3");
}
public cvar_result1(id, const cvar[] , const value[]) {
g_speed[id][0] = floatstr(value);
}
public cvar_result2(id, const cvar[] , const value[]) {
g_speed[id][1] = floatstr(value);
}
public cvar_result3(id, const cvar[] , const value[]) {
g_speed[id][2] = floatstr(value);
}
I guess you shoud do it with only 1 cvar_result function but i don't want to search how to do it ;)
So you can now store client's values, and set them back when you want.
I think that you can't set client_maxspeed (set_user_maxspeed) higher than sv_maxspeed but i may be wrong.Please give feed back about this.