Hello I got a diablo mod server and I wanted to give assassins their own player model. When I added this to the script it compiled without any trouble, but when I picked the assassin race the server crashes. Does anyone see anything wrong or any improvements?
PHP Code:
if(player_class[id] == Assassin && cs_get_user_team(id) == CS_TEAM_CT)
{
cs_set_user_model(id, "models/diablomod/dbo/AssassinCT.mdl")
}
if(player_class[id] == Assassin && cs_get_user_team(id) == CS_TEAM_T)
{
cs_set_user_model(id, "models/diablomod/dbo/AssassinT.mdl")
}
P.S. The precache also works just fine.