I tried to change hostage model, but when I did it half of my model is underground, how to fix it?
Code which I'm using
PHP Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>
new const g_szModel[] = "models/player/leet/leet.mdl" // change this
public plugin_precache()
precache_model(g_szModel)
public plugin_init()
{
register_plugin("Custom hostage model", "0.1", "")
RegisterHam(Ham_Spawn, "hostage_entity", "hostage_spawn", 1)
RegisterHam(Ham_Spawn, "monster_scientist", "hostage_spawn", 1)
}
public hostage_spawn(ent)
entity_set_model(ent, g_szModel)