I have this code provided by TribalBlood
Code:
#include <amxmodx>
#include <fakemeta>
#include <xs>
#define PLUGIN "Flying Scoutsman"
#define VERSION "1.0"
#define AUTHOR "TribalBlood"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_TraceLine, "TraceLine_accuracy", 1);
}
public TraceLine_accuracy(const Float: start[3], Float: dest[3], HIT_PARAM, id, ptr)
{
if(get_user_weapon(id) == CSW_SCOUT && get_user_flags(id) & FL_FLY)
{
velocity_by_aim(id, 9999, dest);
xs_vec_add(start, dest, dest);
engfunc(EngFunc_TraceLine, start, dest, HIT_PARAM, id, ptr);
}
}
What it's trying to emulate is the increased accuracy the Scout has in the CSGO game mode while in the air.
But it gives me a lot of lag, what is the error?
HTML Code:
L 06/25/2022 - 00:18:12: [AMXX] Run time error 10 (plugin "Flying_Scoutsman.amxx") (native "get_user_weapon") - debug not enabled!
L 06/25/2022 - 00:18:12: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).