1.Use [PHP]or [CODE] tags when posting codes.
2.You forgot to explain what it is you need help with.
3.Post in the request section.
PHP Code:
#include <amxmodx>
#include <fakemeta_stocks>
#include <fakemeta_util>
#include <hamsandwich>
#include <cstrike>
#include <engine>
function ()
{
register_plugin(Model ,1.0, roHp)
RegisterHam(Ham_Spawn, "player", "fw_spawn_post",1)
}
public plugin_precache()
{
precache_model("models/player/ct.mdl")
precache_model("models/player/te.mdl")
}
new flags
flags = get_user_flags(id)
if( flags & ADMIN_LEVEL_A )
{ public fw_spawn_post(id)
if (!is_user_alive(id))
return HAM_IGNORED
new CsTeams:team = cs_get_user_team(id)
cs_set_user_model(id, team == CS_TEAM_CT ? "model_ct" : "model_t")
return HAM_IGNORED
}
cs_set_user_model
if( ~flags & ADMIN_LEVEL_H )
{ public fw_spawn_post(id)
if (!is_user_alive(id))
return HAM_IGNORED
new CsTeams:team = cs_get_user_team(id)
cs_set_user_model(id, team == CS_TEAM_CT ? "model_ct" : "model_t")
return HAM_IGNORED
}
}
__________________