It's quite the same to use set_user_maxspeed.
Here's the snippet.
Check if user is alive so you don't alter spectator speed, and check if maxspeed is not 1.0 so you don't allow players to move during freezetime :
PHP Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>
#define PLUGIN "New Plugin"
#define AUTHOR "Unknown"
#define VERSION "1.0"
#define Ham_Player_ResetMaxSpeed Ham_Item_PreFrame
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Player_ResetMaxSpeed,"player","playerResetMaxSpeed",1)
}
public playerResetMaxSpeed(id)
{
if( is_user_alive(id) && entity_get_float(id, EV_FL_maxspeed) != 1.0 )
{
entity_set_float(id, EV_FL_maxspeed, 1000.0)
}
}
__________________