register_event("CurWeapon","event_curweapon","b","1=1") // in plugin_init() public event_curweapon(id) { new Float:maxspeed = get_user_maxspeed(id) }