Try this then.
Code:
#include <amxmodx>
#include <fun>
#define PLUGIN "Faster with knife"
#define VERSION "0.1"
#define AUTHOR "v3x"
#define MAX_SPEED 420.0
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("CurWeapon","Event_CurWeapon","b");
}
public Event_CurWeapon( id )
{
new clip, ammo, weapon = get_user_weapon(id,clip,ammo);
if(weapon == CSW_KNIFE)
set_user_maxspeed(id, MAX_SPEED);
}
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS