próbowałem
i kilku innych a oto kod.pev_sequence
public PostawMine(id)
{
if (!ilosc_klonow_gracza[id])
{
client_print(id, print_center, "Jestes zdolny postawic tylko dwa klony!");
return PLUGIN_CONTINUE;
}
if(inteligencja_gracza[id] < 1)
client_print(id, print_center, "Aby zwiekszyc obrazenia twoich klonow zwieksz sile");
ilosc_klonow_gracza[id]--;
new Float:origin[3];
entity_get_vector(id, EV_VEC_origin, origin);
new ent = create_entity("info_target");
entity_set_string(ent ,EV_SZ_classname, "Mine");
entity_set_edict(ent ,EV_ENT_owner, id);
//entity_set_int(ent, EV_INT_movetype, MOVETYPE_TOSS);
entity_set_origin(ent, origin);
//entity_set_int(ent, EV_INT_solid, SOLID_BBOX);
entity_set_model(ent, "models/player/naruto/Naruto.mdl");
drop_to_floor(ent);
set_pev(id,pev_sequence,"deep_idle")
set_pev(ent,pev_origin,origin)
set_pev(ent,pev_solid,SOLID_NOT)
set_pev(ent,pev_movetype,MOVETYPE_FLY)
set_pev(ent,pev_owner,33)
set_pev(ent,pev_nextthink,1.0)
set_pev(ent,pev_gaitsequence,0)
set_pev(ent,pev_framerate,1.0)
entity_set_float(ent,EV_FL_nextthink,halflife_time() + 0.01) ;
return PLUGIN_CONTINUE;
}


Dodatki SourceMod



Temat jest zamknięty









