public plugin_init( ) { RegisterHam( Ham_Spawn, "player", "FwdPlayerSpawnPost", 1 ); } public FwdPlayerSpawnPost( iPlayer ) { if( is_user_alive( iPlayer ) ) { if( user_has_weapon( iPlayer, CSW_MP5 ) ) { // player has mp5 } else { // player does not have mp5 } } }