i want it to add boost every time i press mouse 2 when holding a knife.
doesnt work :S
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <vector>
#include <engine>
#define PLUGIN "Knife Boost"
#define VERSION "1.0"
#define AUTHOR "Zibit"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("+attack2","Boost",ADMIN_KICK,"Allows boost if pressed mouse2")
// Add your code here...
}
public Boost(id)
{
new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon == CSW_KNIFE ) {
new Float:vRetValue[3]
velocity_by_aim ( id, 500, vRetValue )
}
}
__________________