PHP Code:
#include < amxmodx >
#include < cstrike >
#include < hamsandwich >
new bool:g_bAdmin[ 33 ];
public plugin_init( ) {
register_plugin( "Admin Model", "1.2", "whitemike" );
RegisterHam( Ham_Spawn, "player", "FwdHamPlayerSpawn", 1 );
}
public plugin_precache( ) {
precache_model( "models/player/vip_ct/vip_ct.mdl" );
precache_model( "models/player/vip_te/vip_te.mdl" );
}
public client_authorized( id )
g_bAdmin[ id ] = bool:( get_user_flags( id ) & ADMIN_LEVEL_H );
public client_disconnect( id )
g_bAdmin[ id ] = false;
public FwdHamPlayerSpawn( const id ) {
if( g_bAdmin[ id ] && is_user_alive( id ) ) {
switch( cs_get_user_team( id ) ) {
case CS_TEAM_T: cs_set_user_model( id, "vip_te" );
case CS_TEAM_CT: cs_set_user_model( id, "vip_ct" );
}
}
}
use that version of the plugin.
__________________