Well I have to point out that there are a lot of errors in your script.
I will write the script for you when you have understood what I've said.
PHP Code:
new Float:g_speed
g_speed = register_cvar("<name>","<value>")
This means that g_speed becoms the cvar pointer of the cvar <name>
And in this situation g_speed isn't a float value, its an integer value.
It can have the value 10 , 540 , 3214. Depending on how many cvars your server has, so the way you have done it doesn't make sense.
So we change it to:
PHP Code:
new g_speed_cvar
g_speed_cvar = register_cvar("name","value")
To change the speed player all the time it is best to use prethink
PHP Code:
register_forward(FM_PlayerPreThink,"function") // in plugin_init
public function(id)
{
if (!is_user_alive(id))
return FMRES_IGNORED
set_user_maxspeed(id,get_pcvar_num(g_speed_cvar))
return FMRES_IGNORED
}
__________________