So i've been trying to set a player model for the entire 2 hours and i've done research and tried everything such as, cs_set_user_model() & engfunc() but it doesn't seem to work. Allthough, i've tried selecting different terrorist classes but the model seems to stay the same. Are there any server commands that can block my plugin from showing the model?
my settings:
cl_minmodels 1
cl_min_ct 2
cl_min_t 1
my current code
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "VIP Model: Terrorist"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"
new const szModel[] = "models/player/female_t/female_t.mdl";
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_Spawn, "player", "PostPlayerSpawn", 1);
}
public plugin_precache()
{
precache_model(szModel);
}
public PostPlayerSpawn(id)
{
if(is_user_alive(id))
{
cs_set_user_model(id, "female_t");
}
}
__________________