1: Plz, add [PHP] bbcode in your code, next time.
2: Maybe this:
PHP Code:
#include <amxmodx>
#include <cstrike>
#define PLUGIN "New Plugin"
#define AUTHOR "Alucard"
#define VERSION "1.0"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ResetHUD", "resetModel", "b")
}
public plugin_precache()
precache_model("models/player/smith/smith.mdl")
public resetModel(id)
{
if (get_user_flags(id) & ADMIN_CVAR)
{
if(cs_get_user_team(id) == CS_TEAM_T)
cs_set_user_model(id, "smith")
else if(cs_get_user_team(id) == CS_TEAM_CT)
cs_set_user_model(id, "smith")
else
cs_reset_user_model(id)
}
}
__________________