code:
PHP Code:
#include <amxmodx>
#include <engine>
#define hat "models/admin_head.mdl"
public plugin_precache()
{
precache_model(hat)
}
public plugin_init()
{
if(find_ent_by_class(-1, "hostage_entity"))
{
register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
}
}
public event_new_round()
{
new iEnt = find_ent_by_class(-1, "hostage_entity")
while(iEnt > 0)
{
entity_set_int(iEnt, EV_INT_movetype, MOVETYPE_FOLLOW)
entity_set_edict(iEnt, EV_ENT_aiment, iEnt)
entity_set_model(iEnt, hat)
iEnt = find_ent_by_class(iEnt, "hostage_entity")
}
}
error:
http://img240.**************/i/hostage.png/ or
http://i35.tinypic.com/1gndjo.png
I tried to put a hat hostages but did not work
Thanks for help