Ahah no... x)
use this:
http://forums.alliedmods.net/showthread.php?t=80847
And for exemple, may be this code:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <playermodel>
public plugin_init()
{
register_plugin("Give skin","1.0","Daminou")
register_clcmd("/skin", "cmd_addskin")
register_clcmd("/resetskin", "cmd_removeskin")
}
public plugin_precache()
{
precache_model("models/player/skin_ct/skin_ct.mdl")
precache_model("models/player/skin_te/skin_te.mdl")
}
public cmd_addskin(id)
{
if(!is_user_alive(id))
{
client_print(id, print_chat, "You are dead.")
return PLUGIN_HANDLED
}
switch(cs_get_user_team(id)
{
case CS_TEAM_T:
{
fm_set_user_model(id, "skin_te", false)
}
case CS_TEAM_CT:
{
fm_set_user_model(id, "skin_ct", false)
}
}
client_print(id, print_chat, "You have a new skin.")
}
public cmd_removeskin(id)
{
if(!is_user_alive(id))
{
client_print(id, print_chat, "You are dead.")
return PLUGIN_HANDLED
}
fm_reset_user_model(id)
client_print(id, print_chat, "You have reset your skin.")
return PLUGIN_HANDLED
}
__________________