Sorry I didn't notice this one before.
Tsk, tsk, qwerty...
Code:
#include <amxmodx>
#include <cstrike>
#define MODEL_ACCESS ADMIN_KICK
public plugin_init() {
register_plugin("Model Changer","1.0","Qwerty Access")
register_event("ResetHUD", "ReseHud", "b")
}
public ReseHud(id) {
// firstly, fix those stupid indentation warnings
if (!(get_user_flags(id)&MODEL_ACCESS)) {
return PLUGIN_HANDLED
}
// previously: cs_set_user_model(id,"models/admin/admin.mdl")
// cs_set_user_model doesn't take a full model path, just the name
cs_set_user_model(id,"admin");
return PLUGIN_CONTINUE
}
public plugin_precache() {
// previously: precache_model("models/admin/admin.mdl")
// that isn't the correct path! it has to be in the players directory
precache_model("models/player/admin/admin.mdl");
}
Of course you may have figured this out by now.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS