Okay, then try something like this..
Code:
#include <amxmodx>
#include <cstrike>
#define CUSTOM_MODEL "customleet"
// Currently set to /models/player/customleet/customleet.mdl
public plugin_init() {
register_plugin("Leet Model", "0.1", "v3x")
return PLUGIN_CONTINUE
}
new mdlStr[64]
public plugin_precache() {
format(mdlStr,63,"models/player/%s/%s.mdl",CUSTOM_MODEL,CUSTOM_MODEL)
precache_model(mdlStr)
return PLUGIN_CONTINUE
}
public client_spawn(id) {
new model[24]
cs_get_user_model(id,model,24)
switch(model[id]) {
case CS_T_LEET: {
format(mdlStr,63,"models/player/%s/%s.mdl",CUSTOM_MODEL,CUSTOM_MODEL)
cs_set_user_model(id,mdlStr)
}
}
return PLUGIN_CONTINUE
}
Or something like that. ;)
If anyone knows a different or better way, tell me.
__________________