OK, for some reason it's not working I'll have to fix the code once I get back I have no idea what's going on it's not allowing me to jump nor have better speed, if someone wants to try to fix it heres the code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "SvenCoop - Minigun Powers"
#define VERSION "1.0"
#define AUTHOR "FormulaZero"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon", "weaponminigun", "be")
}
public weaponminigun(id)
{
new clip,ammo
new weapon = get_user_weapon(id,clip,ammo)
if(weapon == 21) {
set_user_maxspeed(id, 300.1)
set_user_gravity(id, 1.5)
client_print(id, print_center, "You can now jump while using the minigun.")
}
return PLUGIN_HANDLED
}
public client_putinserver(id)
{
set_task(3.0, "welcome", id)
}
public welcome(id)
{
new name[32]
get_user_name(id, name, 31)
client_print(id, print_chat, "[INFORMATION] You can jump when you have a minigun in this server")
return PLUGIN_HANDLED
}
But for now school!