Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <engine>
#include <fakemeta_util>
#include <cstrike>
#include <hamsandwich>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init()
{
register_plugin("Run Test","1.0","DavidJr");
}
public client_PreThink(id)
{
entity_set_int(id,EV_INT_button,IN_RUN);
entity_set_int(id, EV_INT_weaponanim, 7 )
}
public set_animation(id, anim)
{
entity_set_int(id, EV_INT_weaponanim, anim);
message_begin(MSG_ONE, SVC_WEAPONANIM, {0,0,0}, id);
write_byte(7);
write_byte(entity_get_int(id, EV_INT_body));
message_end();
}
I've made this plugin.. but when i test in game, the animation play when idle.. also when i shoot, the ammo doesn't decrease, also is there any method to use CSW_MP5 or weapons_mp5 something else like that?