Hi,im trying to make a plugin,plugin its about Recoil weapon, when you type "/recoil" weapon makes crazy
Code:
entity_set_vector (id,EV_VEC_punchangle, Float:{100.0, 5.0, 5.0})
Complete code :
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fun>
#include <vault>
#define PLUGIN "Esteroides"
#define VERSION "1.0"
#define AUTHOR "Xenon"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /recoil", "esteroides")
}
public esteroides(id)
{
{
entity_set_vector (id,EV_VEC_punchangle, Float:{100.0, 115.0, 50.0})
}
}
public Function()
{
}
Right?,ok,but only when you type /recoil that happens ,i want to when you shoot ,when you shoot every time,weapon s recoil,sorry my bad english.
I know that
Code:
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fun>
#include <vault>
not all are necessary, but not to serve each.
Thank you