I have other problem, the animations work only in the air, but no in the floor
Im testing with this two plugins
Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_plugin("Frk", "Mejor", "Modeler")
register_forward(FM_PlayerPreThink, "PreThink")
}
public PreThink(id)
{
if (pev(id, pev_sequence) !=8 )
{
set_pev(id, pev_sequence, 8)
set_pev(id, pev_gaitsequence, 8)
set_pev(id, pev_frame, 30.0)
set_pev(id, pev_fuser1, 10.0)
set_pev(id, pev_animtime, 3.0)
set_pev(id, pev_framerate, 10.0)
}
}
Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
public plugin_init()
{
register_plugin("dd", "1.0", "?");
register_forward(FM_PlayerPreThink, "PlayerPreThink");
}
public PlayerPreThink(id)
{
static button;
button = pev(id, pev_button);
if (button & IN_RUN)
entity_set_int(id, EV_INT_sequence, 4)
set_pev(id, pev_button, button);
return FMRES_HANDLED;
}