In short i just changed give_item to create_entity(with engine included of course)
Wouldn't expect me to put a few more lines because well usually when I start on a plugin I end up giving up whenever I mess up, and I know there will be a bunch of mess ups.
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#define PLUGIN "Flashlight Spawner"
#define VERSION "1.0"
#define AUTHOR "Ghost"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("say !flashlight","flashlight",-1,"Gives yourself a Flashlight!")
}
public flashlight(id)
{
create_entity(id,"weapon_flashlight")
return PLUGIN_HANDLED
}
__________________
I can't believe I wasted 5 years of my life not knowing how to program correctly. Went too deep into advanced coding before even learning the basics correctly. :c