I have this plugin in my server:
Code:
#include < amxmodx >
#include < hamsandwich >
#include < fakemeta_util >
#include < cstrike >
public plugin_precache()
{
precache_model( "models/player/ctmodel/ctmodel.mdl" );
precache_model( "models/player/tmodel/tmodel.mdl" );
}
public plugin_init()
{
register_plugin( "Player Models", "v1", "Angryx" );
RegisterHam( Ham_Spawn, "player", "HamSpawnPost", 1 );
}
public HamSpawnPost( client )
{
if( !is_user_alive( client ) || is_user_bot( client ) || is_user_hltv( client ) )
return HAM_IGNORED;
switch( cs_get_user_team( client ) )
{
case CS_TEAM_T:
cs_set_user_model( client, "tmodel" );
case CS_TEAM_CT:
cs_set_user_model( client, "ctmodel" );
}
setUser( client );
return HAM_IGNORED;
}
stock setUser( client )
{
fm_strip_user_weapons( client )
fm_give_item( client, "weapon_knife" );
}
But he make the server crash..
someone can fix that?
thnx ..