#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
new const PLUGIN[] = "Player models all"
new const VERSION[] = "0.1"
new const AUTHOR[] = "Lahvicka"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "FwH_Spawn", 1)
}
public plugin_precache()
{
precache_model("models/player/news_t/news_t.mdl")
precache_model("models/player/news_ct/news_ct.mdl")
}
public FwH_Spawn(id)
{
if(!is_user_alive(id)) return PLUGIN_CONTINUE
if(cs_get_user_team(id) == CS_TEAM_T)
cs_set_user_model(id,"news_t")
if(cs_get_user_team(id) == CS_TEAM_CT)
cs_set_user_model(id,"news_ct")
return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1029\\ f0\\ fs16 \n\\ par }
*/