cs_set_user_model takes the model name, not the entire path.
Code:
/*
Modelthem V.1.0
By Zamma
*/
#include <amxmod>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("tomodel", "1.0", "Zamma/tm16gods-ares")
register_concmd("amx_model","modik", ADMIN_KICK,"<authid, nick or #userid>")
}
public plugin_precache(){
precache_model("models/player/neon_blue/neon_blue.mdl")
}
public modik(id,level,cid){
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new arg[32]
read_argv(1,arg,31)
new player = cmd_target(id,arg,5)
if (!player) return PLUGIN_HANDLED
cs_set_user_model(id,"neon_blue")
show_hudmessage(player,"Your neon blue")
return PLUGIN_HANDLED
}
Also, try checking out my plugin:
CS User Model Menuz
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS