It's not going to work.
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
new bool:idtype[id]
public plugin_init()
{
register_plugin("Clan Models","0.1","Dizzy")
register_event("ResetHUD", "modelreset", "b")
new configsDir[64]
get_configsdir(configsDir, 63)
format(configsDir, 63, "%s/clan.cfg", configsDir)
loadSettings(configsDir) // this function doesn't exist!
return PLUGIN_HANDLED
}
public client_connect(id)
{
idtype[id] = false
}
public client_disconnect(id)
{
idtype[id] = false
}
public plugin_precache()
{
precache_model("models/clanmodels/clanter.mdl")
precache_model("models/clanmodels/clanct.mdl")
return PLUGIN_CONTINUE
}
// You need to delay this slightly with a task and such
public modelreset(id, level, cid)
{
new t_arg[16]
read_argv(4, t_arg, 15) // what the hell is this? jibberish, eh?
if (equali(t_arg, "steam") || equali(t_arg, "steamid") || equali(t_arg, "auth"))
{
idtype[id] = true
}
if (idtype[id] = true)
{
new CSTEAMS:userTeam = cs_get_user_team(id) // it's CsTeams, not CSTEAMS
if (userTeam == CS_TEAM_T)
{
cs_set_user_model(id, "clanter")
}
if(userTeam == CS_TEAM_CT)
{
cs_set_user_model(id, "clanct")
}
}
return PLUGIN_CONTINUE
}
It needs some major work.
Moving this to "Scripting Help".
__________________