try this here.. Oh and can i get that model from ya
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
new hostagemodel[33]
public SetHostageModel()
{
new iHos = find_ent_by_class(-1, "hostage_entity")
while(iHos != 0)
{
entity_set_model(iHos, hostagemodel)
// client_print(id, 3,"[DEBUG] Hostage with id %d now has model %s", iHos, hosteagemodel)
iHos = find_ent_by_class(iHos, "hostage_entity")
}
new jHos = find_ent_by_class(-1, " monster_scientist")
while(jHos != 0)
{
entity_set_model(jHos, hostagemodel)
// client_print(id, 3,"[DEBUG] Hostage with id %d now has model %s", iHos, hosteagemodel)
iHos = find_ent_by_class(jHos, " monster_scientist")
}
return PLUGIN_CONTINUE
}
public plugin_init()
{
register_plugin("Hostage Model", "1.0", "AssKicR")
register_event("RoundTime", "SetHostageModel", "bc")
}
public plugin_precache(){
format(hostagemodel,32,"player/hostige/hostige.mdl")
precache_model(hostagemodel)
}
__________________